Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Sep 24, 2023
1 parent 6368723 commit 92c8ff5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ public void accept(VectorGeometry vectorGeometry) {
overallY = y;
}

/** Returns the merged multi-geometry. */
public VectorGeometry finish() {
// set the correct "move to" length for multipoints based on how many points were actually added
if (geometryType == GeometryType.POINT) {
Expand Down Expand Up @@ -852,10 +853,15 @@ public boolean isFillOrEdge(boolean allowEdges) {
return visitedEnoughSides(allowEdges, visited);
}

/** Returns true if there are no commands in this geometry. */
public boolean isEmpty() {
return commands.length == 0;
}

/**
* If this is a point, returns an empty geometry if more than {@code buffer} pixels outside the tile bounds, or if
* it is a multipoint than removes all points outside the buffer.
*/
public VectorGeometry filterPointsOutsideBuffer(double buffer) {
if (geomType != GeometryType.POINT) {
return this;
Expand Down

0 comments on commit 92c8ff5

Please sign in to comment.