Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 627 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 627 Bytes

Geodocs

Notes and docs about geo processing (GDAL/OGR, etc.)

GDAL

Print reprojected coordinates of a point

echo 2 48 | gdaltransform  -s_srs EPSG:4326 -t_srs EPSG:27571

Generate OVR pyramids for QGIS (really more faster). A file with .ovr extension with the same name will be created

for file in *.tif; gdaladdo -r AVERAGE -ro $file 2 4 8 16 32 64

OGR

Shapefile to PostGIS

ogr2ogr -f PostgreSQL -nlt MULTILINESTRING PG:"host='host' dbname='dbname' user='user' password='password' port=port"  -lco SCHEMA=schema_name -lco OVERWRITE=YES -lco GEOMETRY_NAME=geom my_shapefile.shp