|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.features.Shape
gistoolkit.features.MultiLineString
Represents a collection of Line Strings.
Field Summary | |
protected LineString[] |
myLines
List of line strings |
Fields inherited from class gistoolkit.features.Shape |
EQUAL_LIMIT, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, myEnvelope, NULLSHAPE, POINT, POLYGON, RASTER |
Constructor Summary | |
MultiLineString()
Create a new MultiLineString |
|
MultiLineString(LineString inLines)
Create a MultiLineString from the given line |
|
MultiLineString(LineString[] inLines)
Creates a MultiLineString from the lines |
Method Summary | |
int |
add(double inX,
double inY)
Add the a point to this shape. |
boolean |
add(int inIndex,
double inX,
double inY)
Adds the point to this shape at the given index. |
void |
addLineString(int inIndex,
LineString inLineString)
Add a line string to this MultiLineString at the given location |
void |
calculateEnvelope()
Calculates the envelope based on the data in the individual lines. |
java.lang.Object |
clone()
Creates a copy of the MultiLineString |
int |
getClosestIndex(double inX,
double inY)
Return the point in the MultiLineString that is the closest to this point. |
Point |
getClosestPoint(double inX,
double inY)
Return the point in the MultiLineString 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()
return the bounding rectangle of this shape. |
LineString[] |
getLines()
Retrieves the array of lines contained in this multi Line String. |
int |
getNumPoints()
Return the number of points in this shape. |
Point |
getPoint(int inIndex)
Get the point at the given index. |
Point[] |
getPoints()
Return the points that comprise the object |
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 |
boolean |
intersects(Shape inShape)
Determines if the two shapes intersect |
boolean |
intersectsLinearRing(LinearRing inLinearRing)
A MultiLineString intersects a LinearRing if any one of it's constituent LineStrings intersect the Linear ring. |
boolean |
intersectsMultiLineString(MultiLineString inMultiLineString)
A MultiLineString will intersect another MultiLineString if any of the constituent LinesStrings within the MultiLineStrings intersect. |
boolean |
intersectsMultiPolygon(MultiPolygon inMultiPolygon)
A MultiLineString intersects a MultiPolygon if the any one of the MultiLineString intersects any of the constituent Polygons of the MultiPolygon. |
boolean |
intersectsPolygon(Polygon inPolygon)
A MultiLineString intersects a Polygon if any of it's constituent LineStrings intersect the Polygon. |
boolean |
intersectsRasterShape(RasterShape inRasterShape)
A MultiLineString intersects a RasterShape if any of the strings intersect the envelope or are contained within the envelope of the raster shape. |
boolean |
remove(int inIndex)
Delete the given point from the polygon. |
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 |
Field Detail |
protected LineString[] myLines
Constructor Detail |
public MultiLineString()
public MultiLineString(LineString[] inLines)
public MultiLineString(LineString inLines)
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 void calculateEnvelope()
calculateEnvelope
in class Shape
public Envelope getEnvelope()
Shape
getEnvelope
in class Shape
public LineString[] getLines()
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 void addLineString(int inIndex, LineString inLineString)
public double getDistanceToPoint(double inX, double inY)
getDistanceToPoint
in class Shape
public boolean intersects(Shape inShape)
intersects
in class Shape
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 |