org.opengis.spatialschema.geometry.primitive
Interface Primitive
-
- All Superinterfaces:
- Geometry, TransfiniteSet
- All Known Subinterfaces:
- CompositeCurve, CompositeSurface, Curve, OrientableCurve, OrientablePrimitive, OrientableSurface, Point, PolyhedralSurface, Ring, Shell, Solid, Surface, Tin, TriangulatedSurface
@UML(identifier="GM_Primitive", specification=ISO_19107) public interface Primitive extends Geometry
Abstract root class of the geometric primitives. Its main purpose is to define the basic "boundary" operation that ties the primitives in each dimension together. A geometric primitive is a geometric object that is not decomposed further into other primitives in the system. This includes curves and surfaces, even though they are composed of curve segments and surface patches, respectively. Those curve segments and surface patches cannot exist outside the context of a primitive.Any geometric object that is used to describe a feature is a collection of geometric primitives. A collection of geometric primitives may or may not be a geometric complex. Geometric complexes have additional properties such as closure by boundary operations and mutually exclusive component parts.
PrimitiveandComplexshare most semantics, in the meaning of operations and attributes. There is an exception in that aPrimitiveshall not contain its boundary (except in the trivial case of point where the boundary is empty), while a complex shall contain its boundary in all cases.- Since:
- GeoAPI 1.0
- See Also:
PrimitiveFactory.createPrimitive(Envelope)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.util.Set<Complex>getComplexes()Returns the set of complexes which contains this primitive.java.util.Set<Primitive>getContainedPrimitives()Returns thePrimitives which are by definition coincident with this one.java.util.Set<Primitive>getContainingPrimitives()Returns thePrimitives which are by definition coincident with this one.OrientablePrimitive[]getProxy()Returns the orientable primitives associated with this primitive.-
Methods inherited from interface org.opengis.spatialschema.geometry.Geometry
clone, getBoundary, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getDistance, getEnvelope, getMaximalComplex, getMbRegion, getRepresentativePoint, isCycle, isMutable, isSimple, toImmutable, transform, transform
-
Methods inherited from interface org.opengis.spatialschema.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
-
-
-
-
Method Detail
-
getContainedPrimitives
@UML(identifier="containedPrimitive", obligation=MANDATORY, specification=ISO_19107) java.util.Set<Primitive> getContainedPrimitives()
Returns thePrimitives which are by definition coincident with this one. This allows applications to override theTransfiniteSet<DirectPosition>interpretation and its associated computational geometry, and declare onePrimitiveto be "interior to" another. This set should normally be empty when thePrimitives are within a complex, since in that case the boundary information is sufficient for most cases. This association should not be used when the twoPrimitives are not close to one another. The intent is to allow applications to compensate for inherent and unavoidable round off, truncation, and other mathematical problems indigenous to computer calculations.- Returns:
- The set of primitives contained into this primitive.
- See Also:
getContainingPrimitives()
-
getContainingPrimitives
@UML(identifier="containingPrimitive", obligation=MANDATORY, specification=ISO_19107) java.util.Set<Primitive> getContainingPrimitives()
Returns thePrimitives which are by definition coincident with this one.- Returns:
- The set of primitives which contains this primitive.
- See Also:
getContainedPrimitives()
-
getComplexes
@UML(identifier="complex", obligation=MANDATORY, specification=ISO_19107) java.util.Set<Complex> getComplexes()
Returns the set of complexes which contains this primitive. APrimitivemay be in several complexes. This association may not be navigable in this direction (from primitive to complex), depending on the implementation.- Returns:
- The set of complexex which contains this primitive.
-
getProxy
@UML(identifier="proxy", obligation=OPTIONAL, specification=ISO_19107) OrientablePrimitive[] getProxy()
Returns the orientable primitives associated with this primitive. EachPrimitiveof dimension 1 or 2 is associated to two orientable primitives, one for each possible orientation. For curves and surfaces, there are exactly two orientable primitives for each geometric object. For the positive orientation, the orientable primitive shall be the corresponding curve or surface.- Returns:
- The orientable primitives as an array of length 2, or
nullif none. - See Also:
OrientablePrimitive.getPrimitive()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG