GDAL读写矢量文件——Python

GDAL读写矢量文件——Python   在Python中使用OGR时,先要导入OGR库,如果需要对中文的支持,还需要导入GDAL库,具体代码如下。Python创建的shp结果如图1所示。 图1 Python创建矢量结果     #-*- coding: cp936 -*- try: from osgeo import gdal from osgeo import ogr exceptImpor
相关文章
相关标签/搜索