Hello,
Point::isEmpty allocates Coordinate when not already created.
I'm using <geometry>.isWithinDistance(<point>, <dist>) for newly created
points. Point::isEmpty is called from Point::computeEnvelopeInternal.
ORIGINAL CODE:
public boolean isEmpty() {
return getCoordinate() == null;
}
SUGGESTED CODE:
public boolean isEmpty() {
return coordinates.size() == 0;
}
Martin
------------------------------------------------------------------------------
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user