ogr2geojson# ogr2geojson(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: path (Union[str, CloudPath, Path]) – Path to vector to read. In case of archive, path to the archive. out_dir (Union[str, CloudPath, Path]) – Output directory arch_vect_path – If archived vector, archive path Returns: Converted file Return type: str