pub fn write_network_geojson(
netelements: &[Netelement],
netrelations: &[NetRelation],
writer: &mut impl Write,
) -> Result<(), ProjectionError>Expand description
Write a railway network (netelements + netrelations) as a GeoJSON
FeatureCollection that round-trips through parse_network_geojson_str.
Netelements are written as LineString features with an id property.
Netrelations are written as geometry-less features tagged with
type="netrelation" and the topology properties consumed by
[parse_netrelation_feature].