|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.geom.Point
| Field Summary |
| Fields inherited from interface com.moximedia.ows.types.GeometryType |
GEOMETRY_TYPE_COLLECTION, GEOMETRY_TYPE_ENVELOPE, GEOMETRY_TYPE_LINE, GEOMETRY_TYPE_MULTILINE, GEOMETRY_TYPE_MULTIPOINT, GEOMETRY_TYPE_MULTIPOLYGON, GEOMETRY_TYPE_POINT, GEOMETRY_TYPE_POLYGON, GEOMETRY_TYPE_UNKNOWN |
| Constructor Summary | |
Point()
|
|
Point(double x,
double y)
|
|
Point(java.lang.String xy)
|
|
Point(java.lang.String xy,
java.lang.String cs)
|
|
| Method Summary | |
Polygon |
buffer(double distance)
|
java.lang.Object |
clone()
Creates a clone of this object. |
boolean |
equals(Point anotherPt)
|
double |
getAngleTo(Point pt)
Returns the trigonometric angle to another point. |
Point |
getClosestPointTo(Point pt)
Gets the closest vertex in this object to the specified point. |
Point |
getCopy()
Creates a copy of this object. |
double |
getDistanceTo(Point pt)
Returns the distance between two points. |
Envelope |
getExtent()
|
int |
getGeometryType()
Returns the geometry type of this geometry. |
java.lang.String |
getGid()
|
double |
getX()
|
double |
getY()
|
boolean |
intersects(Geometry geometry)
|
boolean |
isGeometryType(int geometryType)
Compares a geometry type with another value. |
boolean |
isValid()
Returns an indicator of whether this shape is valid. |
Geometry |
project(Projection projection)
|
Geometry |
project(Projection fromProjection,
Projection toProjection)
|
void |
setLocation(java.lang.String xy)
|
void |
setLocation(java.lang.String xy,
java.lang.String cs)
|
void |
setSrs(java.lang.String srs)
|
void |
setX(double x)
|
void |
setX(java.lang.String x)
|
void |
setXmlAttribute(java.lang.String element,
java.lang.String name,
java.lang.String value)
|
void |
setY(double y)
|
void |
setY(java.lang.String y)
|
java.lang.String |
toCommaSeparatedString()
Returns a text representation of of this object. |
java.lang.String |
toGmlCoordString()
Returns the GML text string representing this point. |
java.lang.String |
toGmlString()
Returns the GML text string representing this point. |
com.vividsolutions.jts.geom.Coordinate |
toJtsCoordinate()
Returns this object as a JTS Coordinate |
com.vividsolutions.jts.geom.Geometry |
toJtsGeometry()
Returns this object as a JTS Geometry |
com.vividsolutions.jts.geom.Point |
toJtsPoint()
Returns this object as a JTS Point |
java.awt.geom.Point2D.Double |
toPoint2D()
|
java.lang.String |
toString()
Returns a text representation of of this object. |
java.lang.String |
toWktString()
Returns the well known string representation of this object. |
Geometry |
unproject(Projection projection)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Point()
public Point(double x,
double y)
public Point(java.lang.String xy)
public Point(java.lang.String xy,
java.lang.String cs)
| Method Detail |
public java.lang.Object clone()
clone in interface Geometrypublic Point getCopy()
public boolean equals(Point anotherPt)
public double getAngleTo(Point pt)
pt - The other point.
public double getDistanceTo(Point pt)
pt - The other point.
public Envelope getExtent()
getExtent in interface Geometrypublic int getGeometryType()
getGeometryType in interface Geometrypublic boolean intersects(Geometry geometry)
intersects in interface Geometrypublic boolean isGeometryType(int geometryType)
isGeometryType in interface GeometrygeometryType - An enumerated value.
public java.lang.String getGid()
public void setLocation(java.lang.String xy)
public void setLocation(java.lang.String xy,
java.lang.String cs)
public double getX()
public double getY()
public void setX(double x)
public void setX(java.lang.String x)
public void setY(double y)
public void setY(java.lang.String y)
public void setXmlAttribute(java.lang.String element,
java.lang.String name,
java.lang.String value)
setXmlAttribute in interface Geometrypublic java.lang.String toCommaSeparatedString()
public java.lang.String toGmlCoordString()
public java.lang.String toGmlString()
toGmlString in interface Geometrypublic com.vividsolutions.jts.geom.Coordinate toJtsCoordinate()
public com.vividsolutions.jts.geom.Geometry toJtsGeometry()
toJtsGeometry in interface Geometrypublic com.vividsolutions.jts.geom.Point toJtsPoint()
public java.awt.geom.Point2D.Double toPoint2D()
public java.lang.String toString()
public Geometry project(Projection fromProjection,
Projection toProjection)
project in interface Geometrypublic Geometry project(Projection projection)
project in interface Geometrypublic void setSrs(java.lang.String srs)
setSrs in interface Geometrypublic Geometry unproject(Projection projection)
unproject in interface Geometrypublic boolean isValid()
isValid in interface Geometrypublic Polygon buffer(double distance)
public Point getClosestPointTo(Point pt)
getClosestPointTo in interface Geometrypt - The point to compare the vertexes to.
public java.lang.String toWktString()
toWktString in interface Geometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||