public class TLcdHanaGeometrySupport extends Object
Utility class that can be used to convert the geometry as returned by a hana database to an
ILcdShape
or to write an ILcdShape
to a stream that can be uploaded to a hana
database.
WARNING: beta. This class may be modified or removed in subsequent releases.
Constructor and Description |
---|
TLcdHanaGeometrySupport()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ILcdShape |
readGeometry(byte[] aBytes)
Reads an OGC WKB byte array and converts it to an
ILcdShape . |
void |
writeGeometry(ILcdShape aShape,
int aSRID,
OutputStream aOutputStreamSFCT)
Encodes the geometry into OGC WKB.
|
public ILcdShape readGeometry(byte[] aBytes) throws IOException
ILcdShape
.aBytes
- the byte array from which the geometry data is read.ILcdShape
.IOException
public void writeGeometry(ILcdShape aShape, int aSRID, OutputStream aOutputStreamSFCT) throws IOException
aShape
- the geometry to be encoded.aSRID
- the SRID (Spatial Reference ID).aOutputStreamSFCT
- the output stream in which the geometry will be encodedIOException
- if the geometry cannot be encoded.