it.cutruzzula.lgml.geometry
Class MultiLineString

java.lang.Object
  extended by it.cutruzzula.lgml.geometry.AbstractGeometry
      extended by it.cutruzzula.lgml.geometry.MultiLineString

public class MultiLineString
extends AbstractGeometry

The class represents a MULTILINESTRING object.


Constructor Summary
MultiLineString(java.util.List<LineString> lineStrings, int srsDimension)
          Constructor.
 
Method Summary
 java.lang.String asWKT()
          Method to get the WKT form of this multi-line-string object.
 java.util.List<LineString> getLineStrings()
          Method to get the list of line-strings.
 java.lang.String getType()
          Method to get the geometry type.
 
Methods inherited from class it.cutruzzula.lgml.geometry.AbstractGeometry
getSrsDimension, getSrsName, setSrsName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiLineString

public MultiLineString(java.util.List<LineString> lineStrings,
                       int srsDimension)
                throws java.lang.Exception
Constructor.

Parameters:
lineStrings - A java.util.List of LineString objects
srsDimension - The number of dimensions
Throws:
A - generic exception if dimensions are not homogeneous
java.lang.Exception
Method Detail

getLineStrings

public java.util.List<LineString> getLineStrings()
Method to get the list of line-strings.

Returns:
A java.util.List of LineString objects

asWKT

public java.lang.String asWKT()
Method to get the WKT form of this multi-line-string object.

Specified by:
asWKT in class AbstractGeometry
Returns:
The WKT string

getType

public java.lang.String getType()
Method to get the geometry type.

Specified by:
getType in class AbstractGeometry
Returns:
"MULTILINESTRING" constant