[gdal-dev] How to add more than one column to a shapefile using ogrinfo

Even Rouault even.rouault at spatialys.com
Sun May 1 13:28:54 PDT 2016


Le dimanche 01 mai 2016 19:11:36, aborruso a écrit :
> Hi Jeff,
> thank you from Italy!
> 
> 
> jmckenna wrote
> 
> > When I responded earlier I was testing and you cannot do this in one
> > single ogrinfo command (so that answers your initial question).  What
> > would be great, if you could add your working example to the docs: here
> > is an existing wiki page for ogrinfo where you can put your example for
> > adding a column through sql:
> > https://trac.osgeo.org/gdal/wiki/UserDocs/OgrInfo
> 
> I have inserted my example in the wiki page:
> https://trac.osgeo.org/gdal/wiki/UserDocs/OgrInfo#AddingacolumnthroughSQL
> 
> Probably I'm making a stupid question, and I'm sorry if I repeat myself:
> why is not possible to use a sigle SQL statement with the adding of more
> than one column?

Because it is not implemented... OGR SQL has many implementation limitations. 
What is supported is documented here : http://gdal.org/ogr_sql.html

> 
> Best regards
> 
> 
> 
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/How-to-add-more-than-one-column-to-a-s
> hapefile-using-ogrinfo-tp5263730p5263771.html Sent from the GDAL - Dev
> mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list