Package org.gvsig.fmap.geom.complex
Interface Complex
- All Superinterfaces:
Cloneable,Comparable,Geometry,org.gvsig.tools.util.GetItem<Geometry>,org.gvsig.tools.util.IsEmpty,Iterable<Geometry>,Serializable,Shape,org.gvsig.tools.util.Size
- All Known Subinterfaces:
Composite,CompositeCurve,CompositeSolid,CompositeSurface
public interface Complex
extends Geometry, Iterable<Geometry>, org.gvsig.tools.util.IsEmpty, org.gvsig.tools.util.Size, org.gvsig.tools.util.GetItem<Geometry>
This interface is equivalent to the GM_Complex specified in
ISO 19107.
A Complex is a collection of geometrically disjoint, simple Primitive's.
If a Primitive (other than a Point) is in a particular Complex,
then there exists a set of primitives of lower dimension in the same complex
that form the boundary of this primitive.
- Author:
- Jorge Piera
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus -
Field Summary
Fields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrimitive(Primitive primitive) Adds a new primitive to the primitivevoidaddPrimitives(Aggregate aggregate) voidaddPrimitives(Geometry geometry) createAggregate(int type, Predicate<Geometry> filter) voidensureCapacity(int capacity) Collection<? extends Geometry> getPrimitiveAt(int i) Returns one of thePrimitive's that is in a concrete position.intReturns the number ofPrimitive's that composes this multi geometry.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.fmap.geom.Geometry
area, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, clone, cloneGeometry, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, flip, force2D, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getProjection, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, reProject, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, transform, union, withinMethods inherited from interface org.gvsig.tools.util.GetItem
getMethods inherited from interface org.gvsig.tools.util.IsEmpty
isEmptyMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersectsMethods inherited from interface org.gvsig.tools.util.Size
size
-
Method Details
-
getPrimitivesNumber
int getPrimitivesNumber()Returns the number ofPrimitive's that composes this multi geometry.- Returns:
- the number of
Primitive's that composes this multi geometry.
-
getPrimitiveAt
Returns one of thePrimitive's that is in a concrete position.- Parameters:
i- Geometry position.- Returns:
- A simple geometry.
-
addPrimitive
Adds a new primitive to the primitive- Parameters:
primitive- The primitive to add
-
addPrimitives
-
addPrimitives
-
ensureCapacity
void ensureCapacity(int capacity) -
getElements
Collection<? extends Geometry> getElements() -
iterator
-
createAggregate
- Throws:
CreateGeometryException
-