public abstract class WKBasis extends java.lang.Object implements WKAdapter
Modifier and Type | Class and Description |
---|---|
protected class |
WKBasis.VectorOfDouble |
protected class |
WKBasis.VectorOfInt |
Modifier and Type | Field and Description |
---|---|
protected static int |
LABEL_WKB_CIRCULARSTRING |
protected static int |
LABEL_WKB_COMPOUNDCURVE |
protected static int |
LABEL_WKB_CURVEPOLYGON |
protected static int |
LABEL_WKB_GEOMETRYCOLLECTION |
protected static int |
LABEL_WKB_LINESTRING |
protected static int |
LABEL_WKB_MULTICURVE |
protected static int |
LABEL_WKB_MULTILINESTRING |
protected static int |
LABEL_WKB_MULTIPOINT |
protected static int |
LABEL_WKB_MULTIPOLYGON |
protected static int |
LABEL_WKB_MULTISURFACE |
protected static int |
LABEL_WKB_NURBSCURVE |
protected static int |
LABEL_WKB_POINT |
protected static int |
LABEL_WKB_POLYGON |
protected static int |
LABEL_WKT_CONTROLPOINTS |
protected static int |
LABEL_WKT_DEGREE |
protected static int |
LABEL_WKT_KNOT |
protected static int |
LABEL_WKT_KNOTS |
protected static int |
LABEL_WKT_MULTIPLICITY |
protected static int |
LABEL_WKT_NURBSPOINT |
protected static int |
LABEL_WKT_VALUE |
protected static int |
LABEL_WKT_WEIGHT |
protected static int |
LABEL_WKT_WEIGHTEDPOINT |
protected ByteOrder |
m_defaultByteOrder |
Constructor and Description |
---|
WKBasis() |
WKBasis(ByteOrder defaultByteOrder) |
Modifier and Type | Method and Description |
---|---|
protected void |
determineCenterAndRadiusForArc(double arcX0,
double arcY0,
double arcX1,
double arcY1,
double arcX2,
double arcY2,
double[] centerX,
double[] centerY,
double[] radius) |
protected void |
fromJGeometry_CollectionElement(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel,
int[] nextPosInEI) |
protected void |
fromJGeometry_ETYPE_1_1(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder) |
protected void |
fromJGeometry_ETYPE_1_n_internal(oracle.spatial.geometry.JGeometry geom,
int posInOrdinates,
int numPoints,
java.io.DataOutputStream out,
ByteOrder byteOrder) |
protected int |
fromJGeometry_ETYPE_1_n(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
boolean processOneElemOnly) |
protected void |
fromJGeometry_ETYPE_2_1(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected void |
fromJGeometry_ETYPE_2_2(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected void |
fromJGeometry_ETYPE_2_3(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected void |
fromJGeometry_ETYPE_2(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
int label,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected void |
fromJGeometry_ETYPE_4_n(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected void |
fromJGeometry_ETYPE_4(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected void |
fromJGeometry_ETYPE_x003_optimized_circle(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
boolean isInteriorRing) |
protected void |
fromJGeometry_ETYPE_x003_optimized_rectangle(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
int outerLabel,
ByteOrder byteOrder,
boolean isInteriorRing) |
protected void |
fromJGeometry_ETYPE_x003(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
int outerLabel,
ByteOrder byteOrder) |
protected void |
fromJGeometry_ETYPE_x005(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder) |
protected int |
fromJGeometry_GTYPE_COLLECTION(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder) |
protected int |
fromJGeometry_GTYPE_CURVE(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected int |
fromJGeometry_GTYPE_MULTICURVE(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder) |
protected int |
fromJGeometry_GTYPE_MULTIPOINT(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
boolean processOneElemOnly) |
protected int |
fromJGeometry_GTYPE_MULTIPOLYGON(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder) |
protected int |
fromJGeometry_GTYPE_POINT(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
protected int |
fromJGeometry_GTYPE_POLYGON(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder,
int outerGeometryLabel) |
byte[] |
fromJGeometry(oracle.spatial.geometry.JGeometry geom)
This transforms a JGeometry to a WKB/WKT geometry.
|
protected void |
fromJGeometry(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
java.io.DataOutputStream out,
ByteOrder byteOrder) |
byte[] |
fromStruct(java.sql.Struct geom)
Creates a WKB/WKT geometry from a Struct object.
|
byte[] |
fromSTRUCT(oracle.sql.STRUCT geom)
Creates a WKB/WKT geometry from a STRUCT object.
|
protected int |
getEndPosInOrdinateArray(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo) |
protected int |
getStartPosInOrdinateArray(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo) |
protected abstract WKInputStream |
getWKInputStream(byte[] wkb) |
protected boolean |
hasType(oracle.spatial.geometry.JGeometry geom,
int posInElemInfo,
int gType,
int eType,
int interpretation) |
protected boolean |
isInnerRing(int eType) |
protected boolean |
MDCGEQ(double a,
double b,
double tolerance) |
protected int |
readByte(WKInputStream in) |
protected ByteOrder |
readByteOrder(WKInputStream in) |
protected double |
readDouble(ByteOrder byteOrder,
WKInputStream in) |
protected void |
readEndList(WKInputStream in) |
protected void |
readEndListOrSeparator(WKInputStream in) |
protected int |
readInnerLabel(WKInputStream in) |
protected int |
readLabel(WKInputStream in,
ByteOrder byteOrder,
int outerLabel) |
protected void |
readSeparator(WKInputStream in) |
protected int |
readStartList(ByteOrder byteOrder,
WKInputStream in) |
protected void |
readStartList(WKInputStream in) |
protected void |
toJGeometry_WKB_CIRCULARSTRING(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_COLLECTION(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_COMPOUNDCURVE(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder,
int outerLabel,
int ringNum) |
protected void |
toJGeometry_WKB_CURVEPOLYGON(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_LINESTRING(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_MULTICURVE(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_MULTILINESTRING(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_MULTIPOINT(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_MULTIPOLYGON(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_MULTISURFACE(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_MULTIXXXPOLYGON(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder,
int outerLabel) |
protected void |
toJGeometry_WKB_MULTIXXXSTRING(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder,
int outerLabel) |
protected void |
toJGeometry_WKB_NURBSCURVE(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_POINT(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
boolean putSinglePointIntoOrdinateArray,
ByteOrder byteOrder,
int outerLabel) |
protected void |
toJGeometry_WKB_POLYGON(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
ByteOrder byteOrder) |
protected void |
toJGeometry_WKB_XXXSTRING(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
int interpretation,
ByteOrder byteOrder) |
oracle.spatial.geometry.JGeometry |
toJGeometry(byte[] wkb)
This transforms a WKB/WKT geometry to a JGeometry.
|
protected void |
toJGeometry(WKInputStream in,
WKBasis.VectorOfInt gType,
WKBasis.VectorOfDouble point,
WKBasis.VectorOfInt elemInfo,
WKBasis.VectorOfDouble ordinates,
boolean putSinglePointIntoOrdinateArray,
int outerLabel) |
java.sql.Struct |
toStruct(byte[] wkContent,
java.sql.Connection conn)
Convert the given WKB/WKT geometry into an Oracle JDBC Struct object.
|
oracle.sql.STRUCT |
toSTRUCT(byte[] wkContent,
java.sql.Connection conn)
Convert the given WKB/WKT geometry into an Oracle JDBC STRUCT object.
|
protected abstract void |
writeBeginningOfList(ByteOrder byteOrder,
java.io.DataOutputStream out,
int length) |
protected abstract void |
writeBeginningOfList(java.io.DataOutputStream out) |
protected abstract void |
writeByte(java.io.DataOutputStream out,
int b) |
protected abstract void |
writeByteOrder(java.io.DataOutputStream out) |
protected abstract void |
writeCoordPairSeparator(java.io.DataOutputStream out) |
protected abstract void |
writeDouble(ByteOrder byteOrder,
java.io.DataOutputStream out,
double value) |
protected abstract void |
writeEndOfList(java.io.DataOutputStream out) |
protected abstract void |
writeGeometrySeparator(java.io.DataOutputStream out) |
protected abstract void |
writeInnerLabel(java.io.DataOutputStream out,
int label,
int outerLabel) |
protected abstract void |
writeLabel(java.io.DataOutputStream out,
int label,
int outerLabel,
ByteOrder byteOrder) |
protected abstract void |
writeXYSeparator(java.io.DataOutputStream out) |
protected static final int LABEL_WKB_POINT
protected static final int LABEL_WKB_LINESTRING
protected static final int LABEL_WKB_CIRCULARSTRING
protected static final int LABEL_WKB_COMPOUNDCURVE
protected static final int LABEL_WKB_POLYGON
protected static final int LABEL_WKB_CURVEPOLYGON
protected static final int LABEL_WKB_MULTIPOINT
protected static final int LABEL_WKB_MULTICURVE
protected static final int LABEL_WKB_MULTILINESTRING
protected static final int LABEL_WKB_MULTISURFACE
protected static final int LABEL_WKB_MULTIPOLYGON
protected static final int LABEL_WKB_GEOMETRYCOLLECTION
protected static final int LABEL_WKB_NURBSCURVE
protected static final int LABEL_WKT_DEGREE
protected static final int LABEL_WKT_CONTROLPOINTS
protected static final int LABEL_WKT_NURBSPOINT
protected static final int LABEL_WKT_WEIGHTEDPOINT
protected static final int LABEL_WKT_WEIGHT
protected static final int LABEL_WKT_KNOTS
protected static final int LABEL_WKT_KNOT
protected static final int LABEL_WKT_VALUE
protected static final int LABEL_WKT_MULTIPLICITY
protected final ByteOrder m_defaultByteOrder
public WKBasis(ByteOrder defaultByteOrder)
public WKBasis()
public byte[] fromJGeometry(oracle.spatial.geometry.JGeometry geom) throws GeometryExceptionWithContext
WKAdapter
fromJGeometry
in interface WKAdapter
geom
- a JGeometry representing the Oracle Spatial geometryGeometryExceptionWithContext
protected void fromJGeometry(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_CollectionElement(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel, int[] nextPosInEI) throws GeometryExceptionWithContext
GeometryExceptionWithContext
public final oracle.sql.STRUCT toSTRUCT(byte[] wkContent, java.sql.Connection conn) throws java.sql.SQLException, GeometryExceptionWithContext
toSTRUCT
in interface WKAdapter
wkContent
- the WKB/WKT geometry (byte array) to be convertedconn
- the connection to be usedjava.sql.SQLException
GeometryExceptionWithContext
public final byte[] fromSTRUCT(oracle.sql.STRUCT geom) throws java.sql.SQLException, GeometryExceptionWithContext
fromSTRUCT
in interface WKAdapter
geom
- the STRUCT object from an oracle result setjava.sql.SQLException
GeometryExceptionWithContext
public final java.sql.Struct toStruct(byte[] wkContent, java.sql.Connection conn) throws java.sql.SQLException, GeometryExceptionWithContext
wkContent
- the WKB/WKT geometry (byte array) to be convertedconn
- the connection to be usedjava.sql.SQLException
GeometryExceptionWithContext
public final byte[] fromStruct(java.sql.Struct geom) throws java.sql.SQLException, GeometryExceptionWithContext
geom
- the Struct object from an oracle result setjava.sql.SQLException
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_1_1(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_1_n_internal(oracle.spatial.geometry.JGeometry geom, int posInOrdinates, int numPoints, java.io.DataOutputStream out, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int fromJGeometry_ETYPE_1_n(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, boolean processOneElemOnly) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_2(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, int label, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_2_2(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_x005(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_x003(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, int outerLabel, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_x003_optimized_circle(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, boolean isInteriorRing) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_x003_optimized_rectangle(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, int outerLabel, ByteOrder byteOrder, boolean isInteriorRing) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_4_n(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_4(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_2_1(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void fromJGeometry_ETYPE_2_3(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int fromJGeometry_GTYPE_COLLECTION(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int fromJGeometry_GTYPE_CURVE(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int fromJGeometry_GTYPE_MULTICURVE(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int fromJGeometry_GTYPE_MULTIPOINT(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, boolean processOneElemOnly) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int fromJGeometry_GTYPE_MULTIPOLYGON(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int fromJGeometry_GTYPE_POINT(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void determineCenterAndRadiusForArc(double arcX0, double arcY0, double arcX1, double arcY1, double arcX2, double arcY2, double[] centerX, double[] centerY, double[] radius)
protected boolean MDCGEQ(double a, double b, double tolerance)
protected int fromJGeometry_GTYPE_POLYGON(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, java.io.DataOutputStream out, ByteOrder byteOrder, int outerGeometryLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected boolean isInnerRing(int eType)
protected boolean hasType(oracle.spatial.geometry.JGeometry geom, int posInElemInfo, int gType, int eType, int interpretation)
protected int getStartPosInOrdinateArray(oracle.spatial.geometry.JGeometry geom, int posInElemInfo)
protected int getEndPosInOrdinateArray(oracle.spatial.geometry.JGeometry geom, int posInElemInfo)
public oracle.spatial.geometry.JGeometry toJGeometry(byte[] wkb) throws GeometryExceptionWithContext
WKAdapter
toJGeometry
in interface WKAdapter
wkb
- a byte[] representing the WKB/WKT geometryGeometryExceptionWithContext
protected void toJGeometry(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, boolean putSinglePointIntoOrdinateArray, int outerLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_POINT(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, boolean putSinglePointIntoOrdinateArray, ByteOrder byteOrder, int outerLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_LINESTRING(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_XXXSTRING(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, int interpretation, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_NURBSCURVE(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_MULTIPOINT(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_MULTILINESTRING(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_MULTICURVE(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_MULTIXXXSTRING(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder, int outerLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_MULTIPOLYGON(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_MULTISURFACE(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_MULTIXXXPOLYGON(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder, int outerLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_COLLECTION(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_POLYGON(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_COMPOUNDCURVE(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder, int outerLabel, int ringNum) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_CURVEPOLYGON(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void toJGeometry_WKB_CIRCULARSTRING(WKInputStream in, WKBasis.VectorOfInt gType, WKBasis.VectorOfDouble point, WKBasis.VectorOfInt elemInfo, WKBasis.VectorOfDouble ordinates, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected void readSeparator(WKInputStream in)
protected void readEndList(WKInputStream in)
protected void readEndListOrSeparator(WKInputStream in)
protected double readDouble(ByteOrder byteOrder, WKInputStream in)
protected void readStartList(WKInputStream in) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int readStartList(ByteOrder byteOrder, WKInputStream in) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int readByte(WKInputStream in) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected int readLabel(WKInputStream in, ByteOrder byteOrder, int outerLabel)
protected int readInnerLabel(WKInputStream in)
protected ByteOrder readByteOrder(WKInputStream in) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeLabel(java.io.DataOutputStream out, int label, int outerLabel, ByteOrder byteOrder) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeInnerLabel(java.io.DataOutputStream out, int label, int outerLabel) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeBeginningOfList(ByteOrder byteOrder, java.io.DataOutputStream out, int length) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeBeginningOfList(java.io.DataOutputStream out) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeDouble(ByteOrder byteOrder, java.io.DataOutputStream out, double value) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeXYSeparator(java.io.DataOutputStream out) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeEndOfList(java.io.DataOutputStream out) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeGeometrySeparator(java.io.DataOutputStream out) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeCoordPairSeparator(java.io.DataOutputStream out) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract WKInputStream getWKInputStream(byte[] wkb)
protected abstract void writeByte(java.io.DataOutputStream out, int b) throws GeometryExceptionWithContext
GeometryExceptionWithContext
protected abstract void writeByteOrder(java.io.DataOutputStream out) throws GeometryExceptionWithContext
GeometryExceptionWithContext