|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgis.Geometry
org.postgis.ComposedGeom
org.postgis.PointComposedGeom
public abstract class PointComposedGeom
PointComposedGeom - base class for all composed geoms that contain only points.
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 | |
---|---|
protected |
PointComposedGeom(int type)
|
protected |
PointComposedGeom(int type,
Point[] points)
|
|
PointComposedGeom(int type,
java.lang.String value)
|
|
PointComposedGeom(int type,
java.lang.String value,
boolean haveM)
|
Method Summary | |
---|---|
protected Geometry[] |
createSubGeomArray(int pointcount)
Return the appropriate instance of the subgeometry array - this encapsulates subclass specific array instantiation |
protected Geometry |
createSubGeomInstance(java.lang.String token,
boolean haveM)
Return the appropriate instance of the subgeometry - this encapsulates subclass specific constructor calls |
Point |
getPoint(int idx)
optimized version |
Point[] |
getPoints()
Get the underlying Point array |
protected void |
innerWKT(java.lang.StringBuffer sb)
Render the "inner" part of the WKT (inside the brackets) into the StringBuffer. |
int |
numPoints()
optimized version |
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 |
---|
protected PointComposedGeom(int type)
protected PointComposedGeom(int type, Point[] points)
public PointComposedGeom(int type, java.lang.String value) throws java.sql.SQLException
java.sql.SQLException
public PointComposedGeom(int type, java.lang.String value, boolean haveM) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
protected Geometry createSubGeomInstance(java.lang.String token, boolean haveM) throws java.sql.SQLException
ComposedGeom
createSubGeomInstance
in class ComposedGeom
java.sql.SQLException
protected Geometry[] createSubGeomArray(int pointcount)
ComposedGeom
createSubGeomArray
in class ComposedGeom
protected void innerWKT(java.lang.StringBuffer sb)
Geometry
innerWKT
in class ComposedGeom
public int numPoints()
numPoints
in class ComposedGeom
public Point getPoint(int idx)
getPoint
in class ComposedGeom
idx
- the index of the point, from 0 to numPoints()-1;public Point[] getPoints()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |