public class GeometryLocation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Geometry |
component
The Geometry component containing the location
|
private int[] |
componentPath
The path of indexes to the component containing the location
|
private int |
index
The index of the vertex or segment the location occurs on
|
private boolean |
isVertex
Indicates whether this location is a vertex of the geometry
|
private Geometry |
parent
The top-level geometry containing the location
|
private Coordinate |
pt
The actual coordinate for the location
|
Constructor and 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) |
Modifier and Type | Method and 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() |
private Geometry parent
private Geometry component
private int[] componentPath
private int index
private boolean isVertex
private Coordinate pt
public GeometryLocation(Geometry parent, Geometry component, int index, Coordinate pt)
public GeometryLocation(Geometry parent, Geometry component, int segmentIndex, boolean isVertex, Coordinate pt)
public GeometryLocation(Geometry parent, Geometry component, int[] componentPath, int segmentIndex, boolean isVertex, Coordinate pt)
public Geometry getComponent()
public Coordinate getCoordinate()
public boolean isVertex()
public Geometry insert()
public Geometry delete()
public double getLength()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String pathString()
public java.lang.String toFacetString()