Skip to content

Commit

Permalink
Add area and length to TestBuilder Info tool
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 25, 2024
1 parent bd49db8 commit 6e9aaac
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ public String writeComponentLocation(Geometry geom, Coordinate p, double toleran
}
else {
buf.append("(" + comp.getNumPoints() + ")");
if (comp.getDimension() >= 1) {
buf.append(" Len: " + comp.getLength());
}
if (comp.getDimension() >= 2) {
buf.append(" Area: " + comp.getArea());
}
}
if (comp.getUserData() != null) {
buf.append(" Data: ");
Expand Down

0 comments on commit 6e9aaac

Please sign in to comment.