The CLI's generate-standard-outputs
command should support a choice of output formats
#242
Labels
generate-standard-outputs
command should support a choice of output formats
#242
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
).The text was updated successfully, but these errors were encountered: