|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by glassgiant in PHP Scripting Language, GIS & GPS Programming
I want to tell if a point specified by a user (in latitude and longitude, from Google maps) falls within British Columbia, Canada (but will need to add other provinces or states in the future). If it was nicely "square" (when projected on a 2D surface), like many provinces, this would be easy, but it's not. So I guess I'm asking 2 questions:
1) where would I find a "connect-the-dots" description of British Columbia's borders, where each point is a latitude and longitude? I realize there may be several descriptions to account for islands.
2) given a list (or lists) of latitudes and longitudes, how do I tell if a point is within the polygon defined by the points in the list?
I'm using PHP, if that matters.
Thanks!
20091111-EE-VQP-91 - Hierarchy / EE_QW_4_20070622