LinearComponentExtracter class
Extracts all the 1-dimensional ({@link LineString}) components from a {@link Geometry}.
For polygonal geometries, this will extract all the component {@link LinearRing}s.
If desired, LinearRing
s can be forced to be returned as LineString
s.
@version 1.7
- Implemented types
Constructors
-
LinearComponentExtracter(List<
LineString> lines) - Constructs a LineExtracterFilter with a list in which to store LineStrings found.
-
LinearComponentExtracter.withForced(List<
LineString> lines, bool isForcedToLineString) - Constructs a LineExtracterFilter with a list in which to store LineStrings found.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isForcedToLineString ↔ bool
-
getter/setter pair
-
lines
↔ List<
LineString> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
filter(
Geometry geom) → void -
Performs an operation with or on
geom
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setForceToLineString(
bool isForcedToLineString) → void - Indicates that LinearRing components should be converted to pure LineStrings.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getGeometry(
Geometry geom) → Geometry - Extracts the linear components from a single {@link Geometry} and returns them as either a {@link LineString} or {@link MultiLineString}.
-
getGeometryWithForce(
Geometry geom, bool forceToLineString) → Geometry - Extracts the linear components from a single {@link Geometry} and returns them as either a {@link LineString} or {@link MultiLineString}.
-
getLines(
Geometry geom) → List< Geometry> - Extracts the linear components from a single geometry. If more than one geometry is to be processed, it is more efficient to create a single {@link LinearComponentExtracter} instance and pass it to multiple geometries.
-
getLinesGF(
Geometry geom, bool forceToLineString) → List< Geometry> - Extracts the linear components from a single geometry. If more than one geometry is to be processed, it is more efficient to create a single {@link LinearComponentExtracter} instance and pass it to multiple geometries.
-
getLinesGL(
Geometry geom, List< LineString> lines) → List - Extracts the linear components from a single {@link Geometry} and adds them to the provided {@link List}.
-
getLinesGLF(
Geometry geom, List< LineString> lines, bool forceToLineString) → List - Extracts the linear components from a single {@link Geometry} and adds them to the provided {@link List}.
-
getLinesLL(
List geoms, List< LineString> lines) → List - Extracts the linear components from a single {@link Geometry} and adds them to the provided {@link Collection}.
-
getLinesLLF(
List geoms, List< LineString> lines, bool forceToLineString) → List - Extracts the linear components from a single {@link Geometry} and adds them to the provided {@link List}.