org.opengis.spatialschema.geometry.primitive
Interface Point
-
- All Superinterfaces:
- Geometry, Position, Primitive, TransfiniteSet
@UML(identifier="GM_Point", specification=ISO_19107) public interface Point extends Primitive, Position
Basic data type for a geometric object consisting of one and only one point. In most cases, the state of aPointis fully determined by its position attribute. The only exception to this is if thePointhas been subclassed to provide additional non-geometric information such as symbology.- Since:
- GeoAPI 1.0
- See Also:
PrimitiveFactory.createPoint(double[])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description BearinggetBearing(Position toPoint)Returns the bearing, as a unit vector, of the tangent (at thisPoint) to the curve between thisPointand a passed position.DirectPositiongetPosition()Returns the direct position of this point.voidsetPosition(DirectPosition position)Sets the direct position of this point.-
Methods inherited from interface org.opengis.spatialschema.geometry.primitive.Primitive
getComplexes, getContainedPrimitives, getContainingPrimitives, getProxy
-
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
-
getPosition
@UML(identifier="position", obligation=MANDATORY, specification=ISO_19107) DirectPosition getPosition()
Returns the direct position of this point.Pointis the only subclass of primitive that cannot use positions to represent its defining geometry. A position is either a direct position or a reference to aPoint(from which a direct position may be obtained). By not allowingPointto use this technique, infinitely recursive references are prevented.- Specified by:
getPositionin interfacePosition- Returns:
- The direct position.
-
setPosition
@UML(identifier="position", obligation=MANDATORY, specification=ISO_19107) void setPosition(DirectPosition position) throws UnmodifiableGeometryException
Sets the direct position of this point.Pointis the only subclass of primitive that cannot use positions to represent its defining geometry. A position is either a direct position or a reference to aPoint(from which a direct position may be obtained). By not allowingPointto use this technique, infinitely recursive references are prevented.- Parameters:
position- The direct position.- Throws:
UnmodifiableGeometryException- if this geometry is not modifiable.
-
getBearing
@UML(identifier="bearing", obligation=MANDATORY, specification=ISO_19107) Bearing getBearing(Position toPoint)
Returns the bearing, as a unit vector, of the tangent (at thisPoint) to the curve between thisPointand a passed position. The choice of the curve type for defining the bearing is dependent on the coordinate reference system in which thisPointis defined. For example, in the Mercator projection, the curve is the rhumb line. In 3D, geocentric coordinate system, the curve may be the geodesic joining the two points along the surface of the geoid or ellipsoid in use. Implementations that support this function shall specify the nature of the curve to be used.- Parameters:
toPoint- the destination point.- Returns:
- The tangent to the curve between this point and the passed position.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG