Class MultiLineString

Hierarchy: Object , Geometry, GeometryCollection, MultiLineString
All Implemented Interfaces: Cloneable , Comparable , Serializable , Lineal
public class MultiLineString
extends GeometryCollection
implements Lineal
Models a collection of LineStrings.

Any collection of LineStrings is a valid MultiLineString.

Other

  • version: 1.7
public MultiLineString(LineString[] lineStrings, PrecisionModel precisionModel, int SRID)
Constructs a MultiLineString.
Parameters:
lineStrings - lineStrings the LineStrings for this MultiLineString , or null or an empty array to create the empty geometry. Elements may be empty LineStrings, but not null s.
precisionModel - precisionModel the specification of the grid of allowable points for this MultiLineString
SRID - SRID the ID of the Spatial Reference System used by this MultiLineString
Deprecation:
Use GeometryFactory instead
public MultiLineString(LineString[] lineStrings, GeometryFactory factory)
Parameters:
lineStrings - lineStrings the LineStrings for this MultiLineString, or null or an empty array to create the empty geometry. Elements may be empty LineStrings, but not nulls.
public int getDimension()
public int getBoundaryDimension()
public String getGeometryType()
public boolean isClosed()
public Geometry getBoundary()
Gets the boundary of this geometry. The boundary of a lineal geometry is always a zero-dimensional geometry (which may be empty).
See also:
Geometry#getBoundary
Returns:
the boundary geometry
public MultiLineString reverse()
Creates a MultiLineString in the reverse order to this object. Both the order of the component LineStrings and the order of their coordinate sequences are reversed.
Returns:
a MultiLineString in the reverse order
protected MultiLineString copyInternal()
public boolean equalsExact(Geometry other, double tolerance)
protected int getTypeCode()