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

From: Hudson Brian R Contr AFRL/IFSA <Brian.Hudson@rl.af.mil>
Date: Thu Mar 17 2005 - 14:55:24 EST

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@bbn.com [mailto:owner-openmap-users@bbn.com] On
Behalf Of Andrew Schulak
Sent: Thursday, March 17, 2005 2:28 PM
To: openmap-users@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@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 17 15:15:03 2005

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:41 EDT