GDAL Utility Functions

Functions for working with geospatial data using GDAL/OGR capabilities.

Core GDAL Tools

  • gdaltranslate - Convert raster data between different formats
  • gdalwarp - Image reprojection and warping
  • gdaldem - Tools to analyze and visualize DEMs
  • ogr2ogr - Convert vector data between file formats

Geometric Operations

Spatial Relationships

  • contains - Test if geometry contains another
  • crosses - Test if geometries cross
  • disjoint - Test if geometries are disjoint
  • equals - Test if geometries are equal
  • intersects - Test if geometries intersect
  • overlaps - Test if geometries overlap
  • touches - Test if geometries touch
  • within - Test if geometry is within another

Distance & Area Calculations

Geodetic Operations

Projection & Coordinate Functions

  • epsg2proj - Convert EPSG code to PROJ string
  • epsg2wkt - Convert EPSG code to WKT
  • lonlat2xy - Convert lon/lat to projected coordinates
  • proj2wkt - Convert PROJ string to WKT
  • setproj! - Set projection for data
  • wkt2proj - Convert WKT to PROJ string
  • xy2lonlat - Convert projected coordinates to lon/lat

Set Operations

Data Processing

GMT Integration

  • gd2gmt - Convert GDAL dataset to GMT object
  • gdalshade - Create shaded relief
  • gdalread - Read geospatial data with GDAL
  • gdalwrite - Write geospatial data with GDAL
  • gmt2gd - Convert GMT object to GDAL dataset

Miscellaneous