[Freegis-list] inside area

Daniel Morissette dmorissette at dmsolutions.ca
Sun Feb 6 20:24:45 CET 2005


joerg pfeiffer wrote:
> hello,
> 
> I d like to build a function in php, that checks, if a lat/long point is 
> inside an area, described by several lat/long points.
> 
> Is there a function, also in other languages, I can use or translate?
> 

Perhaps you could have a look at function msPointInPolygon() in 
mapsearch.c in the MapServer source code (http://mapserver.gis.umn.edu/)

I'm sure there are well documented algorithms to do that out there, but 
I don't have any pointer at the moment.

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the Freegis-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)