com.moximedia.ows.geom
Class MultiLine

java.lang.Object
  extended bycom.moximedia.ows.geom.GeometryCollection
      extended bycom.moximedia.ows.geom.MultiLine
All Implemented Interfaces:
java.lang.Cloneable, Geometry, GeometryType, java.io.Serializable

public class MultiLine
extends GeometryCollection
implements Geometry, GeometryType, java.lang.Cloneable, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.moximedia.ows.types.GeometryType
GEOMETRY_TYPE_COLLECTION, GEOMETRY_TYPE_ENVELOPE, GEOMETRY_TYPE_LINE, GEOMETRY_TYPE_MULTILINE, GEOMETRY_TYPE_MULTIPOINT, GEOMETRY_TYPE_MULTIPOLYGON, GEOMETRY_TYPE_POINT, GEOMETRY_TYPE_POLYGON, GEOMETRY_TYPE_UNKNOWN
 
Constructor Summary
MultiLine()
          Creates new MultiLine
 
Method Summary
 void add(Geometry geometry)
           
 java.lang.Object clone()
          Creates a clone of this object.
 MultiLine getCopy()
          Creates a copy of this object.
 int getGeometryType()
          Returns the geometry type of this geometry.
 boolean intersects(Geometry geometry)
           
 boolean isGeometryType(int geometryType)
          Compares a geometry type with another value.
 boolean isValid()
          Returns an indicator of whether this shape is valid.
 void setSrs(java.lang.String srs)
           
 java.lang.String toGmlString()
          Returns the GML text string representing this object.
 com.vividsolutions.jts.geom.Geometry toJtsGeometry()
          Returns this object as a JTS Geometry object.
 java.lang.String toWktString()
          Returns the well known string representation of this object.
 
Methods inherited from class com.moximedia.ows.geom.GeometryCollection
getClosestPointTo, getExtent, getGeometries, project, project, setXmlAttribute, size, unproject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.moximedia.ows.geom.Geometry
getClosestPointTo, getExtent, project, project, setXmlAttribute, unproject
 

Constructor Detail

MultiLine

public MultiLine()
Creates new MultiLine

Method Detail

clone

public java.lang.Object clone()
Creates a clone of this object. Must be cast back to the correct object type before using. Consider using getCopy() instead.

Specified by:
clone in interface Geometry
Overrides:
clone in class GeometryCollection
Returns:
The clone of this object.

getCopy

public MultiLine getCopy()
Creates a copy of this object.

Returns:
The copy of this object.

add

public void add(Geometry geometry)
Overrides:
add in class GeometryCollection

getGeometryType

public int getGeometryType()
Returns the geometry type of this geometry.

Specified by:
getGeometryType in interface Geometry
Overrides:
getGeometryType in class GeometryCollection
Returns:
The geometry type of this geometry.

intersects

public boolean intersects(Geometry geometry)
Specified by:
intersects in interface Geometry
Overrides:
intersects in class GeometryCollection

isGeometryType

public boolean isGeometryType(int geometryType)
Compares a geometry type with another value.

Specified by:
isGeometryType in interface Geometry
Overrides:
isGeometryType in class GeometryCollection
Parameters:
geometryType - An enumerated value.
Returns:
True if the type of this geometry is the same, otherwise false.

toGmlString

public java.lang.String toGmlString()
Returns the GML text string representing this object.

Specified by:
toGmlString in interface Geometry
Overrides:
toGmlString in class GeometryCollection
Returns:
The GML text string representing this object.

toJtsGeometry

public com.vividsolutions.jts.geom.Geometry toJtsGeometry()
Returns this object as a JTS Geometry object.

Specified by:
toJtsGeometry in interface Geometry
Overrides:
toJtsGeometry in class GeometryCollection
Returns:
This object as a JTS Geometry object.

setSrs

public void setSrs(java.lang.String srs)
Specified by:
setSrs in interface Geometry
Overrides:
setSrs in class GeometryCollection

isValid

public boolean isValid()
Returns an indicator of whether this shape is valid.

Specified by:
isValid in interface Geometry
Overrides:
isValid in class GeometryCollection
Returns:
True if this shape is valid, otherwise false.

toWktString

public java.lang.String toWktString()
Returns the well known string representation of this object.

Specified by:
toWktString in interface Geometry
Overrides:
toWktString in class GeometryCollection
Returns:
The well known text.


Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.