GDAL/OGR cheat sheet

(A copy of a post by dwtkns on github) The holy grail for GDAL/OGR command-line geodata tools Vector operations Get vector information ogrinfo -so input.shp layer-name Or, for all layers ogrinfo -al -so input.shp Print vector extent ogrinfo input.shp layer-name | grep Extent List vector drivers ogr2ogr –formats Convert between vector formats ogr2ogr -f “GeoJSON” … More GDAL/OGR cheat sheet