munroelab / OceanNavigator_dataviewer

A data viewer for Ocean Navigator
http://munroelab.ca/OceanNavigator_dataviewer/
0 stars 0 forks source link

Finding the stations inside a Polygon #1

Closed hmarvi closed 4 years ago

hmarvi commented 4 years ago

Trying to get all the coordinates of a drawn polygon (or any shape like point or circle) by the user. So If I have them I can find the stations that are inside the polygon. So far I could just find the coordinates of the vertices of the polygon.

jmunroe commented 4 years ago

I think using a rectangular bounding box is sufficient. No need to handle arbitrary polygons.

On Wed, Mar 25, 2020 at 3:44 AM Hanieh Marvi notifications@github.com wrote:

Trying to get all the coordinates of a drawn polygon (or any shape like point or circle) by the user. So If I have them I can find the stations that are inside the polygon. So far I could just find the coordinates of the vertices of the polygon.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/munroelab/OceanNavigator_dataviewer/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPFFOYYU72Z5KHVVRGWXHLRJGY33ANCNFSM4LTH7L7A .

-- JAMES MUNROE | ASSOCIATE PROFESSOR

Department of Physics and Physical Oceanography Memorial University of Newfoundland 230 Elizabeth Avenue St. John’s, Newfoundland, Canada A1C 5S7 Chemistry and Physics Building | Room C 4060 T 709 864 7362 | M 709 771 0450

www.physics.mun.ca