GeometryLocation class
Represents the location of a point on a Geometry. Maintains both the actual point location (which may not be exact, if the point is not a vertex) as well as information about the component and segment index where the point occurs. Locations inside area Geometrys will not have an associated segment index, so in this case the segment index will have the sentinel value of {@link #INSIDE_AREA}.
@version 1.7
Constructors
- GeometryLocation(Geometry component, int segIndex, Coordinate pt)
- Constructs a GeometryLocation specifying a point on a geometry, as well as the segment that the point is on (or {@link #INSIDE_AREA} if the point is not on a segment).
- GeometryLocation.fromPointInArea(Geometry component, Coordinate pt)
- Constructs a GeometryLocation specifying a point inside an area geometry.
Properties
- component ↔ Geometry
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- pt ↔ Coordinate
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segIndex ↔ int
-
getter/setter pair
Methods
-
getCoordinate(
) → Coordinate - Returns the {@link Coordinate} of this location.
-
getGeometryComponent(
) → Geometry - Returns the geometry component on (or in) which this location occurs.
-
getSegmentIndex(
) → int - Returns the segment index for this location. If the location is inside an area, the index will have the value {@link #INSIDE_AREA};
-
isInsideArea(
) → bool - Tests whether this location represents a point inside an area geometry.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- INSIDE_AREA → int
-
A special value of segmentIndex used for locations inside area geometries.
These locations are not located on a segment,
and thus do not have an associated segment index.
final