locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.98k stars 443 forks source link

Fix WKTReader to produce correct XY coordinate dimension for POLYGON EMPTY #828

Closed dr-jts closed 2 years ago

dr-jts commented 2 years ago

Fixes WKTReader to set the correct coordinate dimension for POLYGON EMPTY when the dimension is XY.

Add Javadoc to clarify coordinate dimension semantics (highlighting the WKTReader.setIsOldJtsCoordinateSyntaxAllowed method)

Fixes #827

Signed-off-by: Martin Davis mtnclimb@gmail.com