且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否有用于 openstreetmap 的 API?

更新时间:2023-01-25 17:16:38

我发现了一个很好的 API 来读取 Openstreetmap 数据;Mapscript.这是 MapServer 的一个接口,它能够读取 *.map 和 *.shp 文件.它能够使用空间索引,因此可能非常快.我在 40 毫秒内完成了世界海岸线形状文件的随机多边形查找(检查多边形是否与陆地相交).

I've found a great API for reading Openstreetmap data; Mapscript. This is an interface to MapServer, which is able to read *.map and *.shp files. It is able to use a spatial index and is therefore potentially extremely fast. I've done random polygon lookups (checking if a polygon intersects land) of the world coastline shape file in 40 ms.