org.postgis
Class MultiLineString
java.lang.Object
org.postgis.Geometry
org.postgis.ComposedGeom
org.postgis.MultiLineString
- All Implemented Interfaces:
- java.io.Serializable
public class MultiLineString
- extends ComposedGeom
- See Also:
- Serialized Form
Fields inherited from class org.postgis.Geometry |
ALLTYPES, dimension, GEOMETRYCOLLECTION, haveMeasure, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, srid, type, UNKNOWN_SRID |
Methods inherited from class org.postgis.ComposedGeom |
checkConsistency, equalsintern, getFirstPoint, getLastPoint, getPoint, getSubGeometry, innerWKT, isEmpty, iterator, mediumWKT, numGeoms, numPoints, setSrid |
Methods inherited from class org.postgis.Geometry |
equals, equals, getDimension, getSrid, getType, getTypeString, getTypeString, getValue, initSRID, isMeasured, outerWKT, outerWKT, parseSRID, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MultiLineString
public MultiLineString()
MultiLineString
public MultiLineString(LineString[] lines)
MultiLineString
public MultiLineString(java.lang.String value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
MultiLineString
public MultiLineString(java.lang.String value,
boolean haveM)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
hashCode
public int hashCode()
- Description copied from class:
Geometry
- java.lang.Object hashCode implementation
- Overrides:
hashCode
in class ComposedGeom
createSubGeomInstance
protected Geometry createSubGeomInstance(java.lang.String token,
boolean haveM)
throws java.sql.SQLException
- Description copied from class:
ComposedGeom
- Return the appropriate instance of the subgeometry - this encapsulates
subclass specific constructor calls
- Specified by:
createSubGeomInstance
in class ComposedGeom
- Throws:
java.sql.SQLException
createSubGeomArray
protected Geometry[] createSubGeomArray(int nlines)
- Description copied from class:
ComposedGeom
- Return the appropriate instance of the subgeometry array - this
encapsulates subclass specific array instantiation
- Specified by:
createSubGeomArray
in class ComposedGeom
numLines
public int numLines()
getLines
public LineString[] getLines()
getLine
public LineString getLine(int idx)
length
public double length()