Spatial DataBlade
JAVA API v8.21

com.ibm.spatial.geom
Interface MultiCurve

All Superinterfaces:
Geometry, GeometryCollection
All Known Subinterfaces:
MultiLineString
All Known Implementing Classes:
IfxMultiLineString

public interface MultiCurve
extends GeometryCollection

A MultiCurve is a one-dimensional GeometryCollection whose elements are Curves. MultiCurve defines a set of methods for its subinterfaces and is included for reasons of extensibility.

A MultiCurve is simple if and only if all of its elements are simple, the only intersections between any two elements occur at points that are on the boundaries of both elements.

The boundary of a MultiCurve is obtained by applying the modulo 2 union rule: A point is in the boundary of a MultiCurve if it is in the boundaries of an odd number of elements of the MultiCurve.

A MultiCurve is closed if all of its elements are closed. The boundary of a closed MultiCurve is always empty.

A MultiCurve is defined as topologically closed.

See Also:
GeometryCollection, Curve

Method Summary
 boolean isClosed()
          Determines whether this MultiCurve is closed on not.
 double length()
          The length of this MultiCurve, which is equal to the sum of the lengths of the element Curves.
 
Methods inherited from interface com.ibm.spatial.geom.GeometryCollection
geometryN, numGeometries
 
Methods inherited from interface com.ibm.spatial.geom.Geometry
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, dimension, disjoint, distance, envelope, envelopesIntersect, equals, extent, exterior, interior, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, numPoints, overlaps, srid, symmetricDiff, touches, union, within
 

Method Detail

isClosed

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

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

length

double length()
The length of this MultiCurve, which is equal to the sum of the lengths of the element Curves.

Returns:
the sum of the lengths of all constituent curves (in coordinate units)

Spatial DataBlade
JAVA API v8.21


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