用mapkit的overlay把一个城市的地图划分成若干自定义区域(多边形).在地图上给出一点的经度纬度如何判定其落在哪个自定义区域里?
|
zty5678Jul 15, 2015
1
将经纬度坐标转化成墨卡托坐标系里的点?
|
|
ShazooJul 15, 2015
2
射线法可以吧?看各边交点,偶数在外,奇数在内。不过每个区域不能自交叉。
|
|
qianyanseuJul 15, 2015
3
Stackoverflow 问答:How to check if MKCoordinateRegion contains CLLocationCoordinate2D without using MKMapView?
http://stackoverflow.com/questions/10553072/how-to-check-if-mkcoordinateregion-contains-cllocationcoordinate2d-without-using |
|
qianyanseuJul 15, 2015
4
另一个 Stackoverflow 问答:detect if a point is inside a MKPolygon overlay
http://stackoverflow.com/questions/10109677/detect-if-a-point-is-inside-a-mkpolygon-overlay |
|
iDeliciousJul 15, 2015
5
Keyword: 射线法
|
|
ll0xffJul 15, 2015
6
GeoHash
|