python GDAL实现按属性选择图层(等同于arcpy的SelectLayerByAttribute_management)
不废话了,直接上封装好的函数#-*-coding:utf-8-*-importosfromosgeoimportogr,osr,gdalgdal.SetConfigOption("GDAL_FILENAME_IS_UTF8","YES")gdal.SetConfigOption("SHAPE_ENCODING","UTF8")#gdal.SetConfigOption("GDAL_FILENAME