public abstract class PointComposedGeom extends ComposedGeom
EMPTY, subgeomsALLTYPES, dimension, GEOMETRYCOLLECTION, haveMeasure, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, srid, type, UNKNOWN_SRID| Modifier | Constructor and Description |
|---|---|
protected |
PointComposedGeom(int type) |
protected |
PointComposedGeom(int type,
Point[] points) |
|
PointComposedGeom(int type,
String value) |
|
PointComposedGeom(int type,
String value,
boolean haveM) |
| Modifier and Type | Method and Description |
|---|---|
protected Geometry[] |
createSubGeomArray(int pointcount)
Return the appropriate instance of the subgeometry array - this
encapsulates subclass specific array instantiation
|
protected Geometry |
createSubGeomInstance(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(StringBuffer sb)
Render the "inner" part of the WKT (inside the brackets) into the
StringBuffer.
|
int |
numPoints()
optimized version
|
checkConsistency, equalsintern, getFirstPoint, getLastPoint, getSubGeometry, hashCode, isEmpty, iterator, mediumWKT, numGeoms, setSridequals, equals, getDimension, getSrid, getType, getTypeString, getTypeString, getValue, initSRID, isMeasured, outerWKT, outerWKT, parseSRID, toStringprotected PointComposedGeom(int type)
protected PointComposedGeom(int type,
Point[] points)
public PointComposedGeom(int type,
String value)
throws SQLException
SQLExceptionpublic PointComposedGeom(int type,
String value,
boolean haveM)
throws SQLException
SQLExceptionprotected Geometry createSubGeomInstance(String token, boolean haveM) throws SQLException
ComposedGeomcreateSubGeomInstance in class ComposedGeomSQLExceptionprotected Geometry[] createSubGeomArray(int pointcount)
ComposedGeomcreateSubGeomArray in class ComposedGeomprotected void innerWKT(StringBuffer sb)
GeometryinnerWKT in class ComposedGeompublic int numPoints()
numPoints in class ComposedGeompublic Point getPoint(int idx)
getPoint in class ComposedGeomidx - the index of the point, from 0 to numPoints()-1;public Point[] getPoints()
Copyright © 2014. All rights reserved.