摘要:
#!/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') #... 阅读全文
摘要:
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()... 阅读全文
摘要:
#!/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... 阅读全文