org.postgis
Class LinearRing

java.lang.Object
  extended by org.postgis.Geometry
      extended by org.postgis.ComposedGeom
          extended by org.postgis.PointComposedGeom
              extended by org.postgis.LinearRing
All Implemented Interfaces:
java.io.Serializable

public class LinearRing
extends PointComposedGeom

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.postgis.ComposedGeom
EMPTY, subgeoms
 
Fields inherited from class org.postgis.Geometry
ALLTYPES, dimension, GEOMETRYCOLLECTION, haveMeasure, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, srid, type, UNKNOWN_SRID
 
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.
protected LinearRing(java.lang.String value, boolean haveM)
           
 
Method Summary
 
Methods inherited from class org.postgis.PointComposedGeom
createSubGeomArray, createSubGeomInstance, getPoint, getPoints, innerWKT, numPoints
 
Methods inherited from class org.postgis.ComposedGeom
checkConsistency, equalsintern, getFirstPoint, getLastPoint, getSubGeometry, hashCode, isEmpty, iterator, mediumWKT, numGeoms, setSrid
 
Methods inherited from class org.postgis.Geometry
equals, equals, getDimension, getSrid, getType, getTypeString, getTypeString, getValue, initSRID, isMeasured, outerWKT, outerWKT, parseSRID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.
Throws:
java.sql.SQLException

LinearRing

protected LinearRing(java.lang.String value,
                     boolean haveM)
              throws java.sql.SQLException
Parameters:
value - The text representation of this LinearRing
haveM - Hint whether we have a measure. This is given to us by other "parent" Polygon, and is passed further to our parent.
Throws:
java.sql.SQLException