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
没有评论:
发表评论