org.postgis
Class LinearRing
java.lang.Object
|
+--org.postgis.Geometry
|
+--org.postgis.LinearRing
- public class LinearRing
- extends Geometry
This represents the LinearRing GIS datatype. This type is used to
construct the polygon types, but is not
stored or retrieved directly from the database.
Constructor Summary |
LinearRing(Point[] points)
|
LinearRing(java.lang.String value)
This is called to construct a LinearRing from the
PostGIS string representation of a ring. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
points
public Point[] points
- The points in the ring.
LinearRing
public LinearRing(Point[] points)
LinearRing
public LinearRing(java.lang.String value)
throws java.sql.SQLException
- This is called to construct a LinearRing from the
PostGIS string representation of a ring.
- Parameters:
value
- Definition of this ring in the PostGIS
string format.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- the LinearRing in the syntax expected by PostGIS
getValue
public java.lang.String getValue()
- Returns:
- the LinearRing in the string syntax expected by PostGIS
numPoints
public int numPoints()
getPoint
public Point getPoint(int idx)