Class GeometryLocation
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.geom.GeometryLocation
-
public class GeometryLocation extends java.lang.Object
Models the location of a point on a Geometry
-
-
Field Summary
Fields Modifier and Type Field Description private Geometry
component
The Geometry component containing the locationprivate int[]
componentPath
The path of indexes to the component containing the locationprivate int
index
The index of the vertex or segment the location occurs onprivate boolean
isVertex
Indicates whether this location is a vertex of the geometryprivate Geometry
parent
The top-level geometry containing the locationprivate Coordinate
pt
The actual coordinate for the location
-
Constructor Summary
Constructors Constructor Description GeometryLocation(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
delete()
Geometry
getComponent()
Coordinate
getCoordinate()
double
getLength()
Geometry
insert()
boolean
isVertex()
java.lang.String
pathString()
java.lang.String
toFacetString()
java.lang.String
toString()
-
-
-
Field Detail
-
parent
private Geometry parent
The top-level geometry containing the location
-
component
private Geometry component
The Geometry component containing the location
-
componentPath
private int[] componentPath
The path of indexes to the component containing the location
-
index
private int index
The index of the vertex or segment the location occurs on
-
isVertex
private boolean isVertex
Indicates whether this location is a vertex of the geometry
-
pt
private Coordinate pt
The actual coordinate for the location
-
-
Constructor Detail
-
GeometryLocation
public GeometryLocation(Geometry parent, Geometry component, int index, Coordinate pt)
-
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 Detail
-
getComponent
public Geometry getComponent()
-
getCoordinate
public Coordinate getCoordinate()
-
isVertex
public boolean isVertex()
-
insert
public Geometry insert()
-
delete
public Geometry delete()
-
getLength
public double getLength()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
pathString
public java.lang.String pathString()
-
toFacetString
public java.lang.String toFacetString()
-
-