public class LinearComponentExtracter extends Objectimplements GeometryComponentFilter
LineString) components from a
Geometry.
| Constructor and Description |
|---|
LinearComponentExtracter(Collection
Constructs a LineExtracterFilter with a list in which to store LineStrings found.
|
LinearComponentExtracter(Collection
Constructs a LineExtracterFilter with a list in which to store LineStrings found.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter(Geometry
Performs an operation with or on
geom.
|
static Collection |
getLines(Collection
Extracts the linear components from a single
Geometry and adds them to the provided
Collection.
|
static Collection |
getLines(Collection
Extracts the linear components from a single
Geometry and adds them to the provided
Collection.
|
static List |
getLines(Geometry
Extracts the linear components from a single geometry.
|
static List |
getLines(Geometry
Extracts the linear components from a single geometry.
|
static Collection |
getLines(Geometry
Extracts the linear components from a single
Geometry and adds them to the provided
Collection.
|
static Collection |
getLines(Geometry
Extracts the linear components from a single
Geometry and adds them to the provided
Collection.
|
void |
setForceToLineString(boolean isForcedToLineString)
Indicates that LinearRing components should be converted to pure LineStrings.
|
public LinearComponentExtracter(Collectionlines)
public LinearComponentExtracter(Collectionlines, boolean isForcedToLineString)
public static CollectiongetLines(Collection geoms, Collection lines)
Geometry and adds them to the provided
Collection.
geoms - the collection of geometries from which to extract linear components
lines - the collection to add the extracted linear components to
public static CollectiongetLines(Collection geoms, Collection lines, boolean forceToLineString)
Geometry and adds them to the provided
Collection.
geoms - the Collection of geometries from which to extract linear components
lines - the collection to add the extracted linear components to
forceToLineString - true if LinearRings should be converted to LineStrings
public static CollectiongetLines(Geometry geom, Collection lines)
Geometry and adds them to the provided
Collection.
geom - the geometry from which to extract linear components
lines - the Collection to add the extracted linear components to
public static CollectiongetLines(Geometry geom, Collection lines, boolean forceToLineString)
Geometry and adds them to the provided
Collection.
geom - the geometry from which to extract linear components
lines - the Collection to add the extracted linear components to
forceToLineString - true if LinearRings should be converted to LineStrings
public static ListgetLines(Geometry geom)
LinearComponentExtracter instance and pass it to multiple geometries.
geom - the geometry from which to extract linear components
public static ListgetLines(Geometry geom, boolean forceToLineString)
LinearComponentExtracter instance and pass it to multiple geometries.
geom - the geometry from which to extract linear components
forceToLineString - true if LinearRings should be converted to LineStrings
public void setForceToLineString(boolean isForcedToLineString)
isForcedToLineString - true if LinearRings should be converted to LineStrings
public void filter(Geometrygeom)
GeometryComponentFilter
geom.
filter in interface
GeometryComponentFilter
geom - a
Geometry to which the filter is applied.