Class GeometryLocation
java.lang.Object
org.locationtech.jtstest.testbuilder.geom.GeometryLocation
Models the location of a point on a Geometry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Geometry
The Geometry component containing the locationprivate int[]
The path of indexes to the component containing the locationprivate int
The index of the vertex or segment the location occurs onprivate boolean
Indicates whether this location is a vertex of the geometryprivate Geometry
The top-level geometry containing the locationprivate Coordinate
The actual coordinate for the location -
Constructor Summary
ConstructorsConstructorDescriptionGeometryLocation
(Geometry parent, Geometry component, int[] componentPath) GeometryLocation
(Geometry parent, Geometry component, int[] componentPath, int segmentIndex, boolean isVertex, Coordinate pt) GeometryLocation
(Geometry parent, Geometry component, int segmentIndex, boolean isVertex, Coordinate pt) GeometryLocation
(Geometry parent, Geometry component, int index, Coordinate pt) -
Method Summary
-
Field Details
-
parent
The top-level geometry containing the location -
component
The Geometry component containing the location -
componentPath
private int[] componentPathThe path of indexes to the component containing the location -
index
private int indexThe index of the vertex or segment the location occurs on -
isVertex
private boolean isVertexIndicates whether this location is a vertex of the geometry -
pt
The actual coordinate for the location
-
-
Constructor Details
-
GeometryLocation
-
GeometryLocation
-
GeometryLocation
public GeometryLocation(Geometry parent, Geometry component, int segmentIndex, boolean isVertex, Coordinate pt) -
GeometryLocation
public GeometryLocation(Geometry parent, Geometry component, int[] componentPath, int segmentIndex, boolean isVertex, Coordinate pt)
-
-
Method Details