首先,我在force.com APEX编码。
我有一个谷歌地球KML。在这个KML文件中,我有一系列坐标:
<coordinates>
-73.920776,40.710476,0.000000
-73.926125,40.705692,0.000000
-73.933609,40.702782,0.000000
...
...
-73.924210,40.714085,0.000000
-73.922409,40.712849,0.000000
-73.920776,40.710476,0.000000
</coordinates>
我想要做的是创建一个包含我所有坐标的数组,然后能够检查给定的纬度/经度是否落在坐标内。我已经回顾了多边形内的点,但是想看看是否有更简单的方法。
由于 弗兰克
答案 0 :(得分:0)
如果你有一个相对较小的区域 - 不会超过极点或通过国际日期线,那么多边形点就足够了。