Hmm, seems to me that you be as well doing this server-side. If your polys are in MySQL and your points are in MySQL. I'm pretty sure MySQL has a spatial objects library... So send some SQL...? If you wanted this could even be nice and ajaxy!!
basically you would be asking the database if a user generated or selected point is inside a polygon... I use postgresql with the postGIS spatial objects and let it do all my spatial heavy lifting. w. On Jun 4, 3:47 am, mapperzUK <[email protected]> wrote: > hypermod > MySQL for Intersecting Polygons to get Points? > Mysql is limited for geospatial > requests.http://mapki.com/wiki/Spatial_Data_in_MySQL > > but Postgres is better and faster and has more control on what your > doinghttp://trac.osgeo.org/postgis/wiki/UsersWikiExamplesInsidePolygon > > Mapperzhttp://mapperz.blogspot.com/ > > On Jun 3, 7:50 pm, Andrew Leach <[email protected]> wrote: > > > On Jun 3, 7:39 pm, hypermod <[email protected]> wrote: > > > > I know you are trying to help and I appreciate your time, but I think > > > you are still assuming I know how to: > > > > "find which polygon the point is in" > > > I've told you how to do that. Start by including Mike's EPoly or > > EPoly2 extension. Have an array of your polygons, loop through them > > and test whether polygons[i].Contains(marker.getLatLng())==true. > > > Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
