|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.features.Shape
gistoolkit.features.MultiPoint
Represents a collection of points.
Field Summary |
Fields inherited from class gistoolkit.features.Shape |
EQUAL_LIMIT, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, myEnvelope, NULLSHAPE, POINT, POLYGON, RASTER |
Constructor Summary | |
MultiPoint()
Point constructor comment. |
|
MultiPoint(double[] inXs,
double[] inYs)
Create a new multi point which contains a single point. |
|
MultiPoint(double inX,
double inY)
Create a new multi point which contains a single point. |
|
MultiPoint(Point[] inPoints)
Create a new multi point which contains a single point. |
Method Summary | |
int |
add(double inX,
double inY)
Add a point to the MultiPoint returns the index of the newly added point, or -1 if it failed to add the point. |
boolean |
add(int inIndex,
double inX,
double inY)
Adds a point to the MultiPoint at the given point index. |
void |
calculateEnvelope()
Recalculates the envelope for the shape. |
java.lang.Object |
clone()
Creates a copy of the MultiPoint |
int |
getClosestIndex(double inX,
double inY)
Return the point in the LineString that is the closest to this point. |
Point |
getClosestPoint(double inX,
double inY)
Return the point in the MultiPoint that is the closest to this point. |
double |
getDistanceToPoint(double inX,
double inY)
Get the distance from this shape to the given point |
Envelope |
getEnvelope()
Retrieve the envelope for this shape. |
int |
getNumPoints()
Return the number of points in this shape. |
Point |
getPoint(int inIndex)
Get the point at the given index. |
Point[] |
getPoints()
Returns the list of points from this multi 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[] |
getXCoordinates()
Return the array of X Coordinates. |
double[] |
getYCoordinates()
Return the array of Y Coordinates. |
boolean |
intersects(Shape inShape)
Determines if the two shapes intersect |
boolean |
intersectsLinearRing(LinearRing inLinearRing)
A MultiPoint will intersect a LinearRing if any one of the points is contained within the linear ring. |
boolean |
intersectsLineString(LineString inLineString)
A MultiPoint will intersect a LineString if any one of the points intersects a verticie of the line string, or is on one of the lines. |
boolean |
intersectsMultiLineString(MultiLineString inMultiLineString)
A MultiPoint will intersect a MultiLineString if any one of the points intersects one of the constituent line strings. |
boolean |
intersectsMultiPoint(MultiPoint inMultiPoint)
A MultiPoint will intersect another MultiPoint if any one of the points is within the minimum distance (EQUAL_LIMIT). |
boolean |
intersectsMultiPolygon(MultiPolygon inMultiPolygon)
A MultiPoint will intersect a MultiPolygon if any one of the points is contained within the MultiPolygon. |
boolean |
intersectsPolygon(Polygon inPolygon)
A MUltiPoing will intersect a polygon if any one of the points is contained within the polygon. |
boolean |
intersectsRasterShape(RasterShape inRasterShape)
A MultiPoint will intersect a RasterShape if any one of the points is contained within the envelope of the Raster. |
boolean |
remove(int inIndex)
Removes the point at the given index from the MultiPoint. |
void |
setPoint(int inIndex,
double inXCoordinate,
double inYCoordinate)
Set the point at the given index. |
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 |
contains, distance, getDistance, getDistanceToEnvelope, getDistanceToLine, getDistanceToLine, getLinesIntersect, linesIntersect, linesIntersect, pointOnLine, pointOnLine |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiPoint()
public MultiPoint(double[] inXs, double[] inYs)
public MultiPoint(Point[] inPoints)
public MultiPoint(double inX, double inY)
Method Detail |
public double[] getXCoordinates()
public double[] getYCoordinates()
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 void calculateEnvelope()
calculateEnvelope
in class Shape
public Envelope getEnvelope()
getEnvelope
in class Shape
public Point[] getPoints()
getPoints
in class Shape
public java.lang.String getWKT()
getWKT
in class Shape
public Point getClosestPoint(double inX, double inY)
public int getClosestIndex(double inX, double inY)
getClosestIndex
in class Shape
public void translate(double inXDistance, double inYDistance)
translate
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 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 |