|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.db2spatialextender.WKBParser
Class used for parsing WKB format objects into features, and vice versa.
Constructor Summary | |
WKBParser()
Creates new WKBParser |
Method Summary | |
static Shape |
convert(Shape inShape,
java.lang.String inType)
Converts the type of shape sent in, to therequired shape. |
static java.lang.String |
getSQL(java.lang.String inShapeType,
int inCoordinateReference)
Returns the base Sql for updating a particular shape type. |
static Shape |
parseShape(java.io.InputStream in)
Takes a binary input stream from the database, and parses it into a shape. |
static byte[] |
writeWKB(Shape inShape)
Takes a shape and produces it's Well Known Binary (WKB) form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WKBParser()
Method Detail |
public static Shape parseShape(java.io.InputStream in)
in
- java.io.InputStream
public static byte[] writeWKB(Shape inShape)
public static java.lang.String getSQL(java.lang.String inShapeType, int inCoordinateReference) throws java.lang.Exception
For a point it would be db2gse.ST_PointFromWKB(cast(? as blob(1m)), db2gse.coordref()..srid(0)))
For a MultiPoint it would be db2gse.ST_>PointFromWKB(cast(? as blob(1m)), db2gse.coordref()..srid(0)))
java.lang.Exception
public static Shape convert(Shape inShape, java.lang.String inType) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |