How to Check if a Point is in KML Polygon (GIS Shapefile)

前端 未结 1 1447
再見小時候
再見小時候 2021-01-16 08:31

I have an Overlay KML Polygon exported from a Shapefile, is there any way I can find weather a point is in that polygon(KML) or not? I know this is possible when we create p

相关标签:
1条回答
  • 2021-01-16 09:04

    You have 2 options with KML:

    1. use a third party parser like geoxml3 or geoxml-v3 to render your KML as native Google Maps API v3 polygons, then use the way you know how. example using geoxml3

    2. import your KML into a FusionTable, and use the ST_INTERSECTS to check for the intersection of your Polygon with a small circle around your point example using FusionTables. Note with FusionTables you can directly import shapefiles using shpescape.com

    0 讨论(0)
提交回复
热议问题