gdal.vector_translate

Convert vector format, reproject, or filter features.

  • Kind: standard
  • Network: no
  • Wraps: ogr2ogr

Inputs🔗

NameTypeDescription
sourcefile (GeoJSON)Input vector file.
output_formatstringOGR output driver short name. Default GeoJSON.
target_crsstringTarget CRS (e.g. "EPSG:4326"). Empty = preserve source CRS.
wherestringSQL WHERE clause to filter features. Empty = no filter.
sqlstringOGR SQL statement to run on the source. Overrides where when set.

Outputs🔗

NameTypeDescription
vectorsfile (GeoJSON)Translated vector file.