摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- import os try: import ogr import osr except ImportError: from osgeo import ogr, osr shp_driver = ogr.GetDriverByName('ESRI Shapefile') #... 阅读全文
posted @ 2016-08-06 11:56 ParamousGIS 阅读(822) 评论(0) 推荐(0) 编辑
摘要: 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()... 阅读全文
posted @ 2016-08-06 11:54 ParamousGIS 阅读(811) 评论(0) 推荐(1) 编辑
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- import urllib.request import os def get_epsg_code(epsg): """ Get the ESRI formatted .prj definition usage get_epsg_code(4326) We use the ht... 阅读全文
posted @ 2016-08-06 11:50 ParamousGIS 阅读(1181) 评论(0) 推荐(0) 编辑