I recently needed to generate GeoJSON outputs from some MATSim inputs. I expected to be able to do this via the genet generate-standard-outputs CLI command, but that command can only generate parquet output. I had to resort to writing a small Python script that bypassed the CLI and used the API directly to call Network.generate_standard_outputs(), passing the filetype="geojson" parameter.
Although genet generate-standard-outputs ultimately calls the same generate_standard_outputs() method, it does not accept a file type parameter and so can only generate outputs in parquet. The CLI command should accept an optional filetype or format parameter with the same supported values (geojson, geoparquet and shp).
I recently needed to generate GeoJSON outputs from some MATSim inputs. I expected to be able to do this via the
genet generate-standard-outputs
CLI command, but that command can only generate parquet output. I had to resort to writing a small Python script that bypassed the CLI and used the API directly to callNetwork.generate_standard_outputs()
, passing thefiletype="geojson"
parameter.Although
genet generate-standard-outputs
ultimately calls the samegenerate_standard_outputs()
method, it does not accept a file type parameter and so can only generate outputs in parquet. The CLI command should accept an optionalfiletype
orformat
parameter with the same supported values (geojson
,geoparquet
andshp
).