Changes between Version 3 and Version 4 of UserDocs/OgrInfo
- Timestamp:
- May 1, 2016, 10:13:41 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserDocs/OgrInfo
v3 v4 32 32 33 33 Alternatively, use the `-al` switch to see information on all layers. 34 35 == Adding a column through SQL == 36 37 Using ogrinfo is it possible to use SQL language to add a column to an input file. 38 39 The 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 44 INFO: Open of `input.shp' 45 using driver `ESRI Shapefile' successful. 46 }}}