Spatial DataBlade
JAVA API v8.21

com.ibm.spatial.geom
Interface Point

All Superinterfaces:
Geometry
All Known Implementing Classes:
IfxPoint

public interface Point
extends Geometry

The Point interface defines the methods for a class whose instances create a zero-dimensional geometric object that represents a single location in coordinate space.

A Point has a x-coordinate value and a y-coordinate value. The boundary of a Point is the empty set.

Care must be taken to distinguish implementations of this OGC point interface from another class called CoordPoint, which only contains coordinates.

See Also:
Geometry, CoordPoint

Method Summary
 double ordAt(int index)
          Returns the coordinate of this point specified by the argument index (x is at index 0, y is at index 1, z is at index 2, m is at index 3).
 double X()
          Returns the x coordinate of this point.
 double Y()
          Returns the y coordinate of this point.
 
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

X

double X()
Returns the x coordinate of this point.

Returns:
the x coordinate of this point

Y

double Y()
Returns the y coordinate of this point.

Returns:
the y coordinate of this point

ordAt

double ordAt(int index)
Returns the coordinate of this point specified by the argument index (x is at index 0, y is at index 1, z is at index 2, m is at index 3). If the Point doesn't have a coordinate at the specified index (in case of z or m), it returns java.lang.Double.NaN.

Returns:
the coordinate of this point specified by index

Spatial DataBlade
JAVA API v8.21


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