Open andrewharvey opened 6 years ago
In this sample GeoJSON a LineString goes from A to B to C to B to A.
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [[0, 0], [1, 0], [2, 0], [1, 0], [0, 0]] } } ] }
I was expecting that encoded as TopoJSON the arc A to B to C would be saved as the arc A-B-C and the LineString saved as that arc + reverse of the arc, but instead it's just one arc.
{"type":"Topology","objects":{"abcba":{"type":"GeometryCollection","geometries":[{"type":"LineString","arcs":[0]}]}},"arcs":[[[0,0],[1,0],[2,0],[1,0],[0,0]]],"bbox":[0,0,2,0]}
Is this the intended output or is it a bug?
Related topojson/topojson#121.
In this sample GeoJSON a LineString goes from A to B to C to B to A.
I was expecting that encoded as TopoJSON the arc A to B to C would be saved as the arc A-B-C and the LineString saved as that arc + reverse of the arc, but instead it's just one arc.
Is this the intended output or is it a bug?