On 2016-05-01 5:20 AM, aborruso wrote:
Hi,
I have no problem to add a column to a shapefile with:

ogrinfo myfile.shp -sql "ALTER TABLE myfile ADD fieldX integer"

But if I use, the second column is not added to the file.
ogrinfo myfile.shp -sql "ALTER TABLE myfile ADD fieldX integer(3), fieldY
integer(3)"

The shell gives me only
INFO: Open of `myfile.shp'
       using driver `ESRI Shapefile' successful.

What's wrong in my syntax?


I think you have to use 2 ogrinfo statements.

-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to