Python底图 - 读取地图投影坐标中给出的shapefile

时间:2016-01-07 14:59:49

标签: python matplotlib-basemap map-projections

我正试图通过basemap阅读旧金山警察部门的https://data.sfgov.org/Public-Safety/SFPD-Districts-Zipped-Shapefile-Format-/8yyx-6uur)形状文件。

当我使用basemap.readshapefile方法时,我收到错误

shapefile must have lat/lon vertices  - it looks like this one has vertices
    in map projection coordinates. You can convert the shapefile to geographic
    coordinates using the shpproj utility from the shapelib tools
    (http://shapelib.maptools.org/shapelib-tools.html)

有没有办法在python中读取或转换地图投影坐标(因为我不想使用错误中给出的C-Library)?

0 个答案:

没有答案