Spatial DataBlade
JAVA API v8.21

com.ibm.spatial.geom
Class IfxMultiLineString

java.lang.Object
  extended by com.ibm.spatial.geom.IfxGeometry
      extended by com.ibm.spatial.geom.IfxMultiCoord
          extended by com.ibm.spatial.geom.IfxGeometryCollection
              extended by com.ibm.spatial.geom.IfxMultiLineString
All Implemented Interfaces:
Geometry, GeometryCollection, MultiCurve, MultiLineString, java.lang.Cloneable

public class IfxMultiLineString
extends IfxGeometryCollection
implements MultiLineString

IfxMultiLineString implements the MultiLineString interface.

See Also:
MultiLineString, MultiCurve, IfxGeometryCollection

Field Summary
 
Fields inherited from class com.ibm.spatial.geom.IfxGeometry
COORD_M, COORD_XY, COORD_Z
 
Method Summary
 boolean equals(java.lang.Object anObject)
          Compares this object to the specified object.
 java.lang.String geometryType()
          Gets the most appropriate OGC geometry interface type for this object.
 boolean isClosed()
          Determines whether this MultiCurve is closed on not.
 int numGeometries()
          Returns the number of IfxLineStrings in this object.
 int numParts()
          Returns the number of parts of this object.
 int numSubParts(int part)
          Returns the number of subparts in the specified part.
 double perimeter()
          Returns the perimeter of this object.
 
Methods inherited from class com.ibm.spatial.geom.IfxGeometryCollection
area, dimension, geometryN, numPoints, numPoints, toArray, toCoordArray, toPointArray
 
Methods inherited from class com.ibm.spatial.geom.IfxMultiCoord
getLabelPoint, is3D, isEmpty, isMeasured, length
 
Methods inherited from class com.ibm.spatial.geom.IfxGeometry
asBinary, asText, boundary, buffer, clone, contains, convexHull, crosses, difference, disjoint, distance, envelope, envelopesIntersect, extent, exterior, getCoordinateDimension, getDimensionality, getLabelPoint, getOGCType, interior, intersection, intersects, isSimple, isValid, locateAlong, locateBetween, overlaps, srid, symmetricDiff, toString, touches, union, within
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.spatial.geom.MultiCurve
length
 
Methods inherited from interface com.ibm.spatial.geom.GeometryCollection
geometryN
 
Methods inherited from interface com.ibm.spatial.geom.Geometry
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, dimension, disjoint, distance, envelope, envelopesIntersect, extent, exterior, interior, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, numPoints, overlaps, srid, symmetricDiff, touches, union, within
 

Method Detail

isClosed

public boolean isClosed()
Determines whether this MultiCurve is closed on not.

Specified by:
isClosed in interface MultiCurve
Returns:
true if this MultiCurve is closed (startPoint() equals endPoint() for each curve in this MultiCurve); otherwise, it returns false

numGeometries

public int numGeometries()
Returns the number of IfxLineStrings in this object.

Specified by:
numGeometries in interface GeometryCollection
Overrides:
numGeometries in class IfxGeometryCollection
Returns:
the number of IfxLineStrings in this object

geometryType

public java.lang.String geometryType()
Gets the most appropriate OGC geometry interface type for this object.

Overrides:
geometryType in class IfxGeometryCollection
Returns:
a string that identifies the OGC interface related to this geometry

equals

public boolean equals(java.lang.Object anObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is an object of the same type, which represents the same sequence of coordinates as this object.

Specified by:
equals in interface Geometry
Overrides:
equals in class IfxGeometryCollection
Parameters:
anObject - the object to compare this object against.
Returns:
true if the objects are equal; false otherwise.

perimeter

public double perimeter()
Returns the perimeter of this object. The perimeter of a MultiLineString is 0.

Overrides:
perimeter in class IfxMultiCoord
Returns:
the perimeter of this object
See Also:
IfxMultiCoord.length()

numParts

public int numParts()
Returns the number of parts of this object.

Overrides:
numParts in class IfxGeometryCollection
Returns:
the number of parts
See Also:
IfxGeometry.numParts()

numSubParts

public int numSubParts(int part)
Returns the number of subparts in the specified part.

Overrides:
numSubParts in class IfxGeometryCollection
Parameters:
part - part index
Returns:
the number of subparts in the specified part
Throws:
java.lang.IndexOutOfBoundsException - - for non-empty geometries, if the given part index is out of range (part < 0 || part >= numParts()).
See Also:
numParts()

Spatial DataBlade
JAVA API v8.21


Licensed Materials - Property of IBM
Copyright IBM Corp. 2002, 2012 All Rights Reserved.