- Optimize GeoTIFF files
- Build raster tileindex
- Rasterize vector data
- Polygonize raster grid
- Convert raster data
Create tiled file and build overview images
gdal_translate -of GTiff -co "TILED=YES" -co "TFW=YES" <source>.tif <file>.tif
gdaladdo -r average <file>.tif 2 4 8 16dir /s/b *.tif > list.txt
gdaltindex tiles.shp --optfile list.txt
del list.txtgdal_rasterize -l <file> -a <attribute> -tr <resolution>.0 <resolution>.0 -a_nodata 0 -ot Int32 <file>.shp <file>.tifgdal_polygonize <file>.tif -f "ESRI Shapefile" <file> <file>gdal_translate -of bt <file>.tif <file>.btSee convert_to_bt.py
ogr2ogr -f "<format>" [options] <dst_datasource_name> <src_datasource_name>- ESRI Shapefile:
ESRI Shapefile - GeoJSON:
GeoJSON
- -t_srs: Reproject to SRS (
-t_srs EPSG:<code>) - -select: List of fields (
-select "<field1>, <field2>") - -where: Attribute query (
-where "<field> = '<value>'")