2020年11月25日星期三

ogrinfo:操作多个shp文件

 https://gdal.org/drivers/vector/shapefile.html

 

 Normally the OGR Shapefile driver treats a whole directory of shapefiles as a dataset, and a single shapefile within that directory as a layer.

 In this case the directory name should be used as the dataset name. 

However, it is also possible to use one of the files (.shp, .shx or .dbf) in a shapefile set as the dataset name, and then it will be treated as a dataset with one layer.

 

 ogrinfo    -sql "ALTER TABLE  ymss_elements_0  ADD    COLUMN id   integer  "   shapefile_dir

没有评论: