But it is important that this is done in context of all coordinates, to be able to detect duplicates that are created (which should be eliminated). The formatting may lead to invalid geometries in both cases, this should be handled as well.
An example: A LinearRing in a Polygon contains a set of coordinates that only differ at the 5th position after the decimal point. If the ordinates are formatted to only show three digits after the decimal point there will be duplicate points in the geometry.
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
The number formatting when encoding GML geometries is done individually for each ordinate.
But it is important that this is done in context of all coordinates, to be able to detect duplicates that are created (which should be eliminated). The formatting may lead to invalid geometries in both cases, this should be handled as well.
An example: A LinearRing in a Polygon contains a set of coordinates that only differ at the 5th position after the decimal point. If the ordinates are formatted to only show three digits after the decimal point there will be duplicate points in the geometry.