ogr2geojson

Contents

ogr2geojson#

ogr2geojson(vector_path: str | CloudPath | Path, out_dir: str | CloudPath | Path, arch_vect_path: str | None = None) str[source]#

Wrapper of ogr2ogr function, converting the input vector to GeoJSON.

Parameters:
  • vector_path (AnyPathStrType) – Path to vector to read. In case of archive, path to the archive.

  • out_dir (AnyPathStrType) – Output directory

  • arch_vect_path – If archived vector, path to the vector file inside the archive (from the root of the archive)

  • vector_path – Path to vector to read. In case of archive, path to the archive.

  • out_dir – Output directory

  • arch_vect_path – If archived vector, path to the vector file inside the archive (from the root of the archive)

Returns:

Converted file

Return type:

str

Returns:

Converted file

Return type:

str