读取SHP的投影信息

from osgeo import ogr
shp_driver = ogr.GetDriverByName('ESRI Shapefile')
shp_dataset = shp_driver.Open(r'../geodata/schools.shp')
shp_layer = shp_dataset.GetLayer()
shp_srs = shp_layer.GetSpatialRef()
print(shp_srs)
posted @ 2016-08-06 11:54  ParamousGIS  阅读(811)  评论(0编辑  收藏  举报