用mapkit的overlay把一个城市的地图划分成若干自定义区域(多边形).在地图上给出一点的经度纬度如何判定其落在哪个自定义区域里?
1
zty5678 Jul 15, 2015
将经纬度坐标转化成墨卡托坐标系里的点?
|
2
Shazoo Jul 15, 2015
射线法可以吧?看各边交点,偶数在外,奇数在内。不过每个区域不能自交叉。
|
3
qianyanseu Jul 15, 2015
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 |
4
qianyanseu Jul 15, 2015
另一个 Stackoverflow 问答:detect if a point is inside a MKPolygon overlay
http://stackoverflow.com/questions/10109677/detect-if-a-point-is-inside-a-mkpolygon-overlay |
5
iDelicious Jul 15, 2015
Keyword: 射线法
|
6
ll0xff Jul 15, 2015
GeoHash
|