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

Christine Waigl cwaigl at alaska.edu
Sun May 1 08:05:08 PDT 2016


On Sun, May 1, 2016 at 5:30 AM, aborruso <aborruso at gmail.com> wrote:
>
>
> jmckenna wrote
> > I think you have to use 2 ogrinfo statements.

As far as I'm aware -- please correct me if I'm wrong --
ogrinfo only lists information about a file and doesn't
alter it.

"ogrinfo -sql" may well be executing the alter table
statement, but not have anything useful to return
to you. It won't write the result back to the
original file. I'd use ogr2ogr for that. (Disclaimer:
I've never used ogr2ogr with an alter table statement.
I typically use it to extract selected records and
attributes from a large file and save them to a smaller fle.)

Chris


--
Christine (Chris) Waigl - cwaigl at alaska.edu -  +1-907-474-5483 - Skype:
cwaigl_work
Geophysical Institute, UAF, 903 Koyukuk Drive, Fairbanks, AK 99775-7320, USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160501/fa6ad847/attachment.html>


More information about the gdal-dev mailing list