ogr2geojson#
- ogr2geojson(vector_path: Union[str, CloudPath, Path], out_dir: Union[str, CloudPath, Path], arch_vect_path: Optional[str] = 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:
- Returns:
Converted file
- Return type: