gdal
The gdal collection wraps the GDAL/OGR geospatial library using its official Python bindings. Nearly every command-line GDAL utility is available as a block, organized by operation type.
Raster blocks have no prefix; vector (OGR) blocks are prefixed with vector_ so they group visually in pipeline editors.
Raster I/O and format conversion🔗
| Block | Wraps | Description |
|---|---|---|
gdal.translate | gdal_translate | Format conversion, subsetting, scaling |
gdal.warp | gdalwarp | Reproject, resample, warp |
gdal.merge | gdal_merge | Mosaic multiple rasters into one |
gdal.build_vrt | gdalbuildvrt | Build a GDAL Virtual Raster |
gdal.add_overviews | gdaladdo | Build pyramid overviews |
gdal.tile_index | gdaltindex | Build a raster tile index |
gdal.nearblack | nearblack | Clean near-black/white pixels at edges |
gdal.tile | gdal2tiles | Generate XYZ/TMS tiles for web mapping |
gdal.retile | gdal_retile | Retile a raster into a regular grid |
Raster ↔ vector conversion🔗
| Block | Wraps | Description |
|---|---|---|
gdal.rasterize | gdal_rasterize | Burn vector geometries into a raster |
gdal.polygonize | gdal_polygonize | Convert raster regions to polygon features |
gdal.contour | gdal_contour | Generate contour lines from a raster |
Raster analysis🔗
| Block | Wraps | Description |
|---|---|---|
gdal.calc | gdal_calc | Raster algebra via NumPy expressions |
gdal.sieve | gdal_sieve | Remove small connected regions |
gdal.fill_nodata | gdal_fillnodata | Interpolate nodata pixels |
gdal.proximity | gdal_proximity | Distance-to-features raster |
gdal.grid | gdal_grid | Interpolate scattered points onto a grid |
gdal.viewshed | gdal_viewshed | Viewshed analysis |
Clip and mask🔗
| Block | Wraps | Description |
|---|---|---|
gdal.clip_raster_by_vector | gdalwarp -cutline | Clip a raster to a vector mask |
gdal.clip_raster_by_extent | gdalwarp (bbox) | Clip a raster to a bounding box |
Terrain analysis (from gdaldem)🔗
| Block | Description |
|---|---|
gdal.hillshade | Hillshade from a DEM |
gdal.slope | Slope from a DEM |
gdal.aspect | Aspect from a DEM |
gdal.color_relief | Color relief from a DEM |
gdal.tri | Terrain Ruggedness Index |
gdal.tpi | Topographic Position Index |
gdal.roughness | Terrain roughness |
Raster information🔗
| Block | Wraps | Description |
|---|---|---|
gdal.info | gdalinfo | Raster metadata report |
gdal.location_info | gdallocationinfo | Query raster band values at a point |
gdal.compare | gdalcompare | Compare two rasters |
Vector I/O and conversion🔗
| Block | Wraps | Description |
|---|---|---|
gdal.vector_translate | ogr2ogr | Format conversion, reprojection, filtering |
gdal.vector_merge | ogrmerge | Merge vector files |
gdal.vector_tile_index | ogrtindex | Build a vector tile index |
Vector analysis (from ogr_layer_algebra)🔗
| Block | Description |
|---|---|
gdal.vector_union | Union of two layers |
gdal.vector_intersection | Intersection of two layers |
gdal.vector_difference | Difference (A minus B) |
gdal.vector_sym_difference | Symmetric difference |
gdal.vector_identity | Identity overlay |
gdal.vector_clip | Clip layer A by layer B |
gdal.vector_erase | Erase features of A by B |
gdal.vector_update | Update layer A with B |
Vector information🔗
| Block | Wraps | Description |
|---|---|---|
gdal.vector_info | ogrinfo | Vector metadata report |
CRS and coordinate transforms🔗
| Block | Wraps | Description |
|---|---|---|
gdal.srs_info | gdalsrsinfo | CRS metadata report |
gdal.transform_points | gdaltransform | Transform coordinates between CRSs |
Map and reduce helpers🔗
| Block | Kind | Description |
|---|---|---|
gdal.map_raster_tiles | map | Enumerate a raster collection for per-tile processing |
gdal.reduce_mosaic | reduce | Mosaic a collection of rasters back into one |
gdal.reduce_vrt | reduce | Build a VRT from a collection of rasters |
Installation🔗
spade install file:///path/to/blocks/gdalSee also🔗
- GDAL command-line tools documentation
- Core Concepts: Map/Reduce for using
map_raster_tilesandreduce_mosaic/reduce_vrt
gdal.translate
Format conversion, subsetting, scaling (gdal_translate).
Read →gdal.warp
Reproject, resample, or warp a raster (gdalwarp).
Read →gdal.merge
Mosaic multiple rasters into a single raster.
Read →gdal.build_vrt
Build a GDAL Virtual Raster from a collection of rasters.
Read →gdal.add_overviews
Build internal pyramid overviews on a raster (gdaladdo).
Read →gdal.tile_index
Build a vector tile index for a collection of rasters (gdaltindex).
Read →gdal.nearblack
Clean near-black/white pixels at raster edges.
Read →gdal.tile
Generate XYZ/TMS tiles for web mapping (gdal2tiles).
Read →gdal.retile
Split a raster into a regular grid of smaller tiles (gdal_retile).
Read →gdal.rasterize
Burn vector geometries into a raster (gdal_rasterize).
Read →gdal.polygonize
Convert raster regions to polygon features (gdal_polygonize).
Read →gdal.contour
Generate contour lines from a raster (gdal_contour).
Read →gdal.calc
Evaluate a NumPy expression over a raster (gdal_calc).
Read →gdal.sieve
Remove small connected regions from a raster (gdal_sieve).
Read →gdal.fill_nodata
Interpolate nodata pixels from surrounding neighbours (gdal_fillnodata).
Read →gdal.proximity
Compute a distance-to-features raster (gdal_proximity).
Read →gdal.grid
Interpolate scattered points onto a regular raster grid (gdal_grid).
Read →gdal.viewshed
Compute a viewshed raster from an observer point (gdal_viewshed).
Read →gdal.clip_raster_by_vector
Clip a raster to a vector boundary (gdalwarp -cutline).
Read →gdal.clip_raster_by_extent
Clip a raster to a bounding box in its source CRS.
Read →gdal.hillshade
Generate a hillshade raster from a DEM (gdaldem hillshade).
Read →gdal.slope
Compute slope from a DEM (gdaldem slope).
Read →gdal.aspect
Compute aspect from a DEM (gdaldem aspect).
Read →gdal.color_relief
Apply a color ramp to a raster (gdaldem color-relief).
Read →gdal.tri
Compute the Terrain Ruggedness Index from a DEM (gdaldem TRI).
Read →gdal.tpi
Compute the Topographic Position Index from a DEM (gdaldem TPI).
Read →gdal.roughness
Compute terrain roughness from a DEM (gdaldem roughness).
Read →gdal.info
Report raster metadata as JSON (gdalinfo).
Read →gdal.location_info
Query raster band values at a point (gdallocationinfo).
Read →gdal.compare
Compare two rasters and report differences as JSON (gdalcompare).
Read →gdal.vector_translate
Convert vector format, reproject, or filter (ogr2ogr).
Read →gdal.vector_merge
Merge a collection of vector files into a single layer (ogrmerge).
Read →gdal.vector_tile_index
Build a vector footprint index for a collection of vector files (ogrtindex).
Read →gdal.vector_union
Union of two vector layers (ogr_layer_algebra Union).
Read →gdal.vector_intersection
Intersection of two vector layers (ogr_layer_algebra Intersection).
Read →gdal.vector_difference
Geometric difference of two vector layers (A minus B).
Read →gdal.vector_sym_difference
Symmetric difference of two vector layers (ogr_layer_algebra SymDifference).
Read →gdal.vector_identity
Identity overlay of two vector layers.
Read →gdal.vector_clip
Clip vector layer A by the footprint of vector layer B.
Read →gdal.vector_erase
Erase features of A by B (alias of vector_difference).
Read →gdal.vector_update
Update layer A with features from B (ogr_layer_algebra Update).
Read →gdal.vector_info
Report vector metadata as JSON (ogrinfo).
Read →gdal.srs_info
Report CRS metadata in multiple forms (gdalsrsinfo).
Read →gdal.transform_points
Transform a tabular file of coordinates between two CRSs (gdaltransform).
Read →gdal.map_raster_tiles
Fan out over a collection of raster tiles for per-tile processing.
Read →gdal.reduce_mosaic
Mosaic a collection of rasters back into one raster (fan-in after a map).
Read →gdal.reduce_vrt
Build a Virtual Raster from a collection of rasters (fan-in after a map).
Read →