JTS Release 1.18.0
Version 1.18.0
Release Date: 12/23/2020
API Changes
GeometryPrecisionReducer
is less tolerant of invalid input (but also avoids failing on some valid ones) (#648)- Moved
Position
andQuadrant
toorg.locationtech.jts.geom
package - Removed
SimpleSnapRounder
- useSnapRoundingNoder
instead - Deprecated
MCIndexSnapRounder
- useSnapRoundingNoder
instead
Functionality Improvements
- Improve Orientation.isCCW to handle flat topology collapse (#588)
- Add
KMLReader
(#593) - Add
Densifier.setValidated
method to allow disabling expensive polygon validation (#595) - Add
OverlayNG
codebase (#599) - Add Z support in OverlayNG (#645)
- Add system property
jts.overlay=ng
to enable use of OverlayNG inGeometry
methods (#615) - Add
SnapRoundingNoder
(#599) - Add
SnappingNoder
(#599) - Change
GeometryPrecisionReducer
to use OverlayNG with Snap-Rounding - Change
GeometryNoder
to useSnapRoundingNoder
- Add
KdTree
size
anddepth
methods (#603) - Improve
WKBWriter
to write empty Polygons using a more compact representation (#623) - Support read and initialize internal structure of
STRtree
andQuadtree
(#634) - Improve
GeometryPrecisionReducer
to handle GeometryCollections (#648) - Add
Orientation.isCCWArea
(#655)
Performance Improvements
- Improve performance of
UnaryUnionOp
by removing OverlayUnion optimization (#644)
Bug Fixes
- Fix
RayCrossingCounter
to handle XYZM coordinates (#589) - Fix
PackedCoordinateSequence
to always use XYZM coordinates when dimension is 4 (#591) - Fix
OrdinateFormat
to work around a JDK issue with the minus sign character inLocale.NO
(#596) - Fix
GeoJsonReader
to throw aParseException
for empty arrays (#600) - Fix
WKTFileReader
handling of files with large amount of whitespace (#616) - Fix
WKBWriter
to output 3D empty Points with 3 ordinates (#622) - Fix
Geometry.reverse
to handle all geometry structures (#628) - Fix
GeometryPrecisionReducer
to avoid silently mangling input (#648) - Fix
Geometry.buffer
to avoid dropping large polygon areas in some situations (#655)- also fixes
DouglasPeuckerSimplifier
(#498)
- also fixes
JTS TestBuilder
Functionality Improvements
- Add Geometry Inspector sorting by Area or Length