Package org.gvsig.fmap.geom.primitive
Interface Point
- All Superinterfaces:
Cloneable,Comparable,Geometry,Primitive,Serializable,Shape
- All Known Subinterfaces:
PointM
This interface is equivalent to the GM_Point specified in ISO 19107. It is the basic data type for a geometric object consisting of one and only one point.
- 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 TypeMethodDescriptionclone()Creates a clone of this geometry.force2D()force2DM()force3D()force3DM()doublegetCoordinateAt(int dimension) Gets the coordinate in a concrete dimensiondouble[]Returns an array of coordinates.Gets theof a point, that is composed by a set of ordinatesdoublegetX()Returns the X coordinatedoublegetY()Returns the Y coordinatevoidsetCoordinateAt(int dimension, double value) Sets a ordinate in a concrete dimensionvoidsetCoordinates(double[] values) Sets the point coordinatesvoidsetX(double x) Sets the X coordinatevoidsetY(double y) Sets the Y coordinateMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.fmap.geom.Geometry
area, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, 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, 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, within
-
Method Details
-
getDirectPosition
DirectPosition getDirectPosition()Gets theof a point, that is composed by a set of ordinates- Returns:
- The direct position
-
setCoordinateAt
void setCoordinateAt(int dimension, double value) Sets a ordinate in a concrete dimension- Parameters:
dimension- The dimension to setvalue- The value to set
-
setCoordinates
void setCoordinates(double[] values) Sets the point coordinates- Parameters:
values- The coordinates to set
-
setX
void setX(double x) Sets the X coordinate- Parameters:
x- The value to set
-
setY
void setY(double y) Sets the Y coordinate- Parameters:
y- The value to set
-
getCoordinateAt
double getCoordinateAt(int dimension) Gets the coordinate in a concrete dimension- Parameters:
dimension- The ordinate dimension- Returns:
- The value of the ordinate
-
getCoordinates
double[] getCoordinates()Returns an array of coordinates. Don't use the provided array to modify the point coordinates, but use thesetCoordinateAt(int, double),setX(double)orsetY(double)methods instead.- Returns:
- The point coordinates
-
getX
double getX()Returns the X coordinate- Returns:
- The X coordinate
-
getY
double getY()Returns the Y coordinate- Returns:
- The Y coordinate
-
cloneGeometry
Point cloneGeometry()Description copied from interface:GeometryCreates a clone of this geometry.- Specified by:
cloneGeometryin interfaceGeometry- Returns:
- A clone of this geometry.
-
clone
- Specified by:
clonein interfaceGeometry- Throws:
CloneNotSupportedException
-
force2D
- Specified by:
force2Din interfaceGeometry- Returns:
- Throws:
GeometryOperationNotSupportedExceptionGeometryOperationException
-
force3D
-
force2DM
-
force3DM
-