Changes between Version 3 and Version 4 of UserDocs/OgrInfo


Ignore:
Timestamp:
May 1, 2016, 10:13:41 AM (8 years ago)
Author:
aborruso
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserDocs/OgrInfo

    v3 v4  
    3232
    3333Alternatively, use the `-al` switch to see information on all layers.
     34
     35== Adding a column through SQL ==
     36
     37Using ogrinfo is it possible to use SQL language to add a column to an input file.
     38
     39The SQL syntax is a standard `ALTER TABLE` statement; it's necessary to add `-sql` switch. In example
     40
     41{{{
     42$ ogrinfo input.shp -sql "ALTER TABLE input ADD fieldX float"
     43
     44INFO: Open of `input.shp'
     45      using driver `ESRI Shapefile' successful.
     46}}}