|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.geom.Points
| Constructor Summary | |
Points()
Creates new Points |
|
Points(com.vividsolutions.jts.geom.Point[] points)
Creates a new Points object from a com.vividsolutions.jts.geom.Point array. |
|
Points(java.lang.String commaSeparatedPoints)
Creates a new Points collection from a string of x,y values that are separated by commas between the x and y values and the other coordinates (e.g. |
|
| Method Summary | |
boolean |
add(int index,
Point pt)
|
void |
add(Point pt)
|
boolean |
addVertexToSegmentAtDistance(Point pt,
double segmentDistance)
|
void |
clear()
|
java.lang.Object |
clone()
Creates a clone of this object. |
void |
close()
|
Point |
get(int index)
|
Point |
getClosestPointTo(Point pt)
Returns the point in the points list that is closest to the specified point. |
Points |
getCopy()
Creates a copy of this object. |
double |
getDistanceToClosestLineSegment(Point pt)
Returns the distance from the specified point to the closest segment of the line defined between a pair of points in the points object. |
Envelope |
getExtent()
Returns the extent of the points list, or null if the list has no points. |
boolean |
hasPoint(Point pt)
|
boolean |
isClockwise()
Returns whether the points list is clockwise. |
java.util.Iterator |
iterator()
|
Points |
project(Projection projection)
|
Points |
project(Projection fromProjection,
Projection toProjection)
|
Point |
remove(int index)
|
boolean |
remove(Point pt,
boolean isLineString)
Removes a point from the array. |
Point |
replace(int index,
Point pt)
|
void |
reverse()
Reverses the points in the points list |
void |
setClockwise()
Sets the points list to clockwise. |
void |
setCoordinates(java.lang.String coordinates)
|
void |
setCounterClockwise()
Sets the points list to counterclockwise. |
void |
setXmlAttribute(java.lang.String element,
java.lang.String name,
java.lang.String value)
|
int |
size()
|
Point[] |
toArray()
|
java.lang.String |
toGmlCoordinatesString()
|
java.lang.String |
toGmlCoordString()
|
java.lang.String |
toGmlLinearRingString()
|
java.lang.String |
toGmlLineStringString()
|
java.lang.String |
toGmlLineStringString(java.lang.String srs)
|
com.vividsolutions.jts.geom.Coordinate[] |
toJtsCoordinateArray()
Returns this object as a com.vividsolutions.jts.geom.Coordinate array. |
com.vividsolutions.jts.geom.LinearRing |
toJtsLinearRing()
Returns this object as a com.vividsolutions.jts.geom.LinearRing |
com.vividsolutions.jts.geom.Geometry |
toJtsLineString()
Returns this object as a com.vividsolutions.jts.geom.LineString |
com.vividsolutions.jts.geom.Geometry |
toJtsMultiPoint()
Returns this object as a com.vividsolutions.jts.geom.MultiPoint |
com.vividsolutions.jts.geom.Point[] |
toJtsPointArray()
Returns this object as a com.vividsolutions.jts.geom.Point array. |
java.util.ArrayList |
toLineSegments()
Returns the points array as an ArrayList of java.awt.geom.Line2D.Double objects representing the line segments between points. |
Points |
unproject(Projection projection)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Points()
public Points(java.lang.String commaSeparatedPoints)
commaSeparatedPoints - The string containing coordinates.public Points(com.vividsolutions.jts.geom.Point[] points)
points - A com.vividsolutions.jts.geom.Point array.| Method Detail |
public void add(Point pt)
public boolean add(int index,
Point pt)
public void clear()
public java.lang.Object clone()
public Points getCopy()
public void close()
public Point get(int index)
public Envelope getExtent()
public boolean isClockwise()
public java.util.Iterator iterator()
public Point remove(int index)
public Point replace(int index,
Point pt)
public void reverse()
public void setCounterClockwise()
public void setClockwise()
public int size()
public Point[] toArray()
public com.vividsolutions.jts.geom.Coordinate[] toJtsCoordinateArray()
public com.vividsolutions.jts.geom.Point[] toJtsPointArray()
public com.vividsolutions.jts.geom.LinearRing toJtsLinearRing()
public com.vividsolutions.jts.geom.Geometry toJtsLineString()
public com.vividsolutions.jts.geom.Geometry toJtsMultiPoint()
public java.lang.String toGmlLinearRingString()
public java.lang.String toGmlLineStringString()
public java.lang.String toGmlLineStringString(java.lang.String srs)
public java.lang.String toGmlCoordString()
public java.lang.String toGmlCoordinatesString()
public void setCoordinates(java.lang.String coordinates)
public void setXmlAttribute(java.lang.String element,
java.lang.String name,
java.lang.String value)
public Points project(Projection projection)
public Points project(Projection fromProjection,
Projection toProjection)
public Points unproject(Projection projection)
public Point getClosestPointTo(Point pt)
pt - The point used in the search.
public double getDistanceToClosestLineSegment(Point pt)
pt - The point to measure from.
public java.util.ArrayList toLineSegments()
public boolean addVertexToSegmentAtDistance(Point pt,
double segmentDistance)
public boolean remove(Point pt,
boolean isLineString)
pt - The point to remove,
public boolean hasPoint(Point pt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||