|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.features.Shape
gistoolkit.features.Point
A point is a feature that has no dimension, it only represents a point in two dimension space.
Field Summary | |
double |
x
|
double |
y
|
Fields inherited from class gistoolkit.features.Shape |
EQUAL_LIMIT, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, myEnvelope, NULLSHAPE, POINT, POLYGON, RASTER |
Constructor Summary | |
Point(double inX,
double inY)
Point constructor comment. |
Method Summary | |
int |
add(double inX,
double inY)
Adds the point to the Shape. |
boolean |
add(int inIndex,
double inX,
double inY)
Adds the point to the Shape. |
java.lang.Object |
clone()
Creates a copy of the Point |
boolean |
contains(Shape inShape)
Determines if this point contains the shape sent in; This Point can only contain the shape sent in if they are the same point. |
double |
distance(Point inPoint)
Return the distance from the particular point |
boolean |
equals(double inX,
double inY)
|
boolean |
equals(java.lang.Object inObject)
|
int |
getClosestIndex(double inX,
double inY)
Get the point nearest this location. |
Point |
getClosestPoint(double inX,
double inY)
Get the point nearest this location. |
double |
getDistanceToPoint(double inX,
double inY)
Get the distance from this shape to the given point |
Envelope |
getEnvelope()
return the bounding rectangle of this shape. |
int |
getNumPoints()
Returns the number of points in the shape. |
Point |
getPoint(int inIndex)
Returns the point at the given index. |
Point[] |
getPoints()
return a point array of one point for this point |
java.lang.String |
getShapeType()
Return the type of shape this is |
java.lang.String |
getWKT()
Returns the OGIS Well Know Text Representation of this shape |
double |
getX()
|
double |
getY()
|
boolean |
intersects(Shape inShape)
Determines if the two shapes intersect |
boolean |
intersectsLinearRing(LinearRing inLinearRing)
A point intersects a LinearRing if it is contained within the interior of the linear ring. |
boolean |
intersectsLineString(LineString inLineString)
A point intersects a LineString if it intersects any one if the LineStrings' points, or if it is on the line between any two of the LineStrings' points. |
boolean |
intersectsMultiLineString(MultiLineString inMultiLineString)
A point intersects a MultiLineString if it intersects any one of the constituent LineStrings. |
boolean |
intersectsMultiPoint(MultiPoint inMultiPoint)
A point intersects a MultiPoint if it intersects any one of it's constituent points |
boolean |
intersectsMultiPolygon(MultiPolygon inMultiPolygon)
A point intersects a MultiPolygon if it is contained within the MultiPolygon. |
boolean |
intersectsPoint(Point inPoint)
A point intersects another point if they are within the equal limit, like an equal calculation. |
boolean |
intersectsPolygon(Polygon inPolygon)
A point intersects a Polygon if it is contained within the polygon. |
boolean |
intersectsRasterShape(RasterShape inRasterShape)
A point intersects a RasterShape if it is contained within the envelope of the raster shape |
static boolean |
pointsEqual(double inX1,
double inY1,
double inX2,
double inY2)
A point intersects another point if they are within the equal limit, like an equal calculation. |
boolean |
remove(int inIndex)
Removes the point at the given index. |
void |
setPoint(int inIndex,
double inXCoordinate,
double inYCoordinate)
Sets the point at the given index to the given value. |
void |
setX(double inX)
|
void |
setY(double inY)
|
java.lang.String |
toString()
Returns the string representation of this point. |
void |
translate(double inXDistance,
double inYDistance)
Translate the shape the given distance in the X and Y directions |
Methods inherited from class gistoolkit.features.Shape |
calculateEnvelope, distance, getDistance, getDistanceToEnvelope, getDistanceToLine, getDistanceToLine, getLinesIntersect, linesIntersect, linesIntersect, pointOnLine, pointOnLine |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double x
public double y
Constructor Detail |
public Point(double inX, double inY)
Method Detail |
public java.lang.String getShapeType()
getShapeType
in class Shape
public java.lang.Object clone()
clone
in class Shape
public int getNumPoints()
getNumPoints
in class Shape
public Point getPoint(int inIndex)
getPoint
in class Shape
public void setPoint(int inIndex, double inXCoordinate, double inYCoordinate)
setPoint
in class Shape
public int add(double inX, double inY)
add
in class Shape
public boolean add(int inIndex, double inX, double inY)
add
in class Shape
public boolean remove(int inIndex)
remove
in class Shape
public boolean contains(Shape inShape)
contains
in class Shape
inShape
- features.Shape
public Envelope getEnvelope()
getEnvelope
in class Shape
public double getX()
public double getY()
public void setX(double inX)
public void setY(double inY)
public boolean equals(java.lang.Object inObject)
public boolean equals(double inX, double inY)
public java.lang.String toString()
public Point[] getPoints()
getPoints
in class Shape
public java.lang.String getWKT()
getWKT
in class Shape
public void translate(double inXDistance, double inYDistance)
translate
in class Shape
public double distance(Point inPoint)
public Point getClosestPoint(double inX, double inY)
public int getClosestIndex(double inX, double inY)
getClosestIndex
in class Shape
public double getDistanceToPoint(double inX, double inY)
getDistanceToPoint
in class Shape
public boolean intersects(Shape inShape)
intersects
in class Shape
public boolean intersectsPoint(Point inPoint)
public static boolean pointsEqual(double inX1, double inY1, double inX2, double inY2)
public boolean intersectsMultiPoint(MultiPoint inMultiPoint)
public boolean intersectsLineString(LineString inLineString)
public boolean intersectsMultiLineString(MultiLineString inMultiLineString)
public boolean intersectsLinearRing(LinearRing inLinearRing)
public boolean intersectsPolygon(Polygon inPolygon)
public boolean intersectsMultiPolygon(MultiPolygon inMultiPolygon)
public boolean intersectsRasterShape(RasterShape inRasterShape)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |