开发者

KML file polygon data to db/php?

开发者 https://www.devze.com 2023-01-23 05:07 出处:网络
I\'m using gmaps v3 and I am using a km开发者_JAVA百科l file to display polygon shapes. What I want to do, is that if I have a LNG/LAT coordinate, how to find whether it falls on the boundary or insi

I'm using gmaps v3 and I am using a km开发者_JAVA百科l file to display polygon shapes.

What I want to do, is that if I have a LNG/LAT coordinate, how to find whether it falls on the boundary or inside the shape?

I understand you can do this with V2 maps but not V3. So then my questions are:

Can I import the coordinates into my db in a useful way that I can then do a select statement if the LNG/LAT falls in between?

Can I do something useful on the serverside end since I have all the data to hand anyway?

Any advice appreciated.

Thanks


Solved, I found a way of converting the kml file to lat/lng coordinates which I could then apply to a php function here: derivante.com/files/phpgis.txt

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号