public abstract class PointComposedGeom extends ComposedGeom
EMPTY, subgeoms
ALLTYPES, 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, setSrid
equals, equals, getDimension, getSrid, getType, getTypeString, getTypeString, getValue, initSRID, isMeasured, outerWKT, outerWKT, parseSRID, toString
protected PointComposedGeom(int type)
protected PointComposedGeom(int type, Point[] points)
public PointComposedGeom(int type, String value) throws SQLException
SQLException
public PointComposedGeom(int type, String value, boolean haveM) throws SQLException
SQLException
protected Geometry createSubGeomInstance(String token, boolean haveM) throws SQLException
ComposedGeom
createSubGeomInstance
in class ComposedGeom
SQLException
protected Geometry[] createSubGeomArray(int pointcount)
ComposedGeom
createSubGeomArray
in class ComposedGeom
protected void innerWKT(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()
Copyright © 2014. All rights reserved.