jts
jts copied to clipboard
WKTReader adds dimension in default mode
The WKTReader
silently adds a dimension to 2D WKT when isOldJtsCoordinateSyntaxAllowed = true
. This is the default.
Point pt = new WKTReader().read("POINT (10 10)");
if (pt.getCoordinateSequence().getDimension() == 3)
System.out.println("dimension silently added");
The effect is the same for the other geometry types. Is this by design or do you care for a PR?