LinearComponentExtracter

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, <code>LinearRing</code>s can be forced to be returned as <code>LineString</code>s.

Version

1.7

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

Extracts the linear components from a single {link Geometry} and returns them as either a {link LineString} or {link MultiLineString}.

Extracts the linear components from a single {link Geometry} and returns them as either a {link LineString} or {link MultiLineString}.

Value Params
geom

the geometry from which to extract return a linear geometry

def getGeometry(geom: Geometry, forceToLineString: Boolean): Geometry

Extracts the linear components from a single {link Geometry} and returns them as either a {link LineString} or {link MultiLineString}.

Extracts the linear components from a single {link Geometry} and returns them as either a {link LineString} or {link MultiLineString}.

Value Params
forceToLineString

true if LinearRings should be converted to LineStrings return a linear geometry

geom

the geometry from which to extract

def getLines(geoms: Collection[Geometry], lines: Collection[Geometry]): Collection[Geometry]

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Value Params
geoms

the collection of geometries from which to extract linear components

lines

the collection to add the extracted linear components to return the collection of linear components (LineStrings or LinearRings)

def getLines(geoms: Collection[Geometry], lines: Collection[Geometry], forceToLineString: Boolean): Collection[Geometry]

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Value Params
forceToLineString

true if LinearRings should be converted to LineStrings return the collection of linear components (LineStrings or LinearRings)

geoms

the Collection of geometries from which to extract linear components

lines

the collection to add the extracted linear components to

def getLines(geom: Geometry, lines: Collection[Geometry]): Collection[Geometry]

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Value Params
geom

the geometry from which to extract linear components

lines

the Collection to add the extracted linear components to return the Collection of linear components (LineStrings or LinearRings)

def getLines(geom: Geometry, lines: Collection[Geometry], forceToLineString: Boolean): Collection[Geometry]

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Extracts the linear components from a single {link Geometry} and adds them to the provided {link Collection}.

Value Params
forceToLineString

true if LinearRings should be converted to LineStrings return the Collection of linear components (LineStrings or LinearRings)

geom

the geometry from which to extract linear components

lines

the Collection to add the extracted linear components to

def getLines(geom: Geometry): ArrayList[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.

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.

Value Params
geom

the geometry from which to extract linear components return the list of linear components

def getLines(geom: Geometry, forceToLineString: Boolean): ArrayList[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.

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.

Value Params
forceToLineString

true if LinearRings should be converted to LineStrings return the list of linear components

geom

the geometry from which to extract linear components