Notes and docs about geo processing (GDAL/OGR, etc.)
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
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