RE: [OpenMap Users] Determine if a LatLonPoint is inside an OMPol y?

From: Hudson Brian R Contr AFRL/IFSA <Brian.Hudson_at_rl.af.mil>
Date: Thu, 17 Mar 2005 19:55:24 -0000

Here is how I do it:

Shape s = poly.getShape();

Point p = projection.forward(lat, lon);

if(s.contains(p) {

// It's in there

}

Hope this helps,

Brian Hudson


________________________________

From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Andrew Schulak
Sent: Thursday, March 17, 2005 2:28 PM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Determine if a LatLonPoint is inside an OMPoly?


I saw some posts in the archives from 3 years ago on this but I did not see
an answer so I will ask again.
 
What is the best way to determine if a LatLonPoint is inside an OMPoly?
 
Thanks much,
Andrew

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 17 2005 - 15:15:03 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT