【文件属性】:
文件名称:Python 根据数据模板创建shapefile的实现
文件大小:37KB
文件格式:PDF
更新时间:2024-02-11 13:14:13
ef file python
废话不多说,我就直接上代码让大家看看吧!
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : copyShapefile.py
# @Author: huifer
# @Date : 2018-4-28
from os.path import exists
import gdal
from osgeo import ogr
from os import remove
gdal.SetConfigOption(GDAL_FILENAME_IS_UTF8, YES) # 路径中文
gdal.SetConfigOption(SH