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.


Field Summary
 Point[] points
          The points in the ring.
 
Fields inherited from class org.postgis.Geometry
dimension, GEOMETRYCOLLECTION, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, type
 
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.
 
Method Summary
 Point getPoint(int idx)
           
 java.lang.String getValue()
           
 int numPoints()
           
 java.lang.String toString()
           
 
Methods inherited from class org.postgis.Geometry
getDimension, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

points

public Point[] points
The points in the ring.
Constructor Detail

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.
Method Detail

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)