Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed May 13, 2024
1 parent b427535 commit 354abe4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.LineString;

/**
* Determines the boundary points of a linear geometry,
* using a {@link BoundaryNodeRule}.
*
* @author mdavis
*
*/
class LinearBoundary {

private Map<Coordinate, Integer> vertexDegree = new HashMap<Coordinate, Integer>();
Expand All @@ -46,7 +53,6 @@ public boolean isBoundary(Coordinate pt) {
if (! vertexDegree.containsKey(pt))
return false;
int degree = vertexDegree.get(pt);
//TODO: add support for settable BoundaryNodeRule
return boundaryNodeRule.isInBoundary(degree);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

/**
* Locates a point on a geometry, including mixed-type collections.
* The dimension of the containing geometry element is also determined.
* GeometryCollections are handled with union semantics;
* i.e. the location of a point is that location of that point
* on the union of the elements of the collection.
Expand All @@ -46,6 +47,7 @@
* points on polygon element boundaries may lie in the effective interior
* of the collection geometry.
* </ol>
* Prepared mode is supported via cached spatial indexes.
*
* @author Martin Davis
*
Expand Down

0 comments on commit 354abe4

Please sign in to comment.