Package com.luciad.format.hana
Class TLcdHanaGeometrySupport
java.lang.Object
com.luciad.format.hana.TLcdHanaGeometrySupport
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.
- Since:
- 2014.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadGeometry(byte[] aBytes) Reads an OGC WKB byte array and converts it to anILcdShape.voidwriteGeometry(ILcdShape aShape, int aSRID, OutputStream aOutputStreamSFCT) Encodes the geometry into OGC WKB.
-
Constructor Details
-
TLcdHanaGeometrySupport
public TLcdHanaGeometrySupport()Default constructor.
-
-
Method Details
-
readGeometry
Reads an OGC WKB byte array and converts it to anILcdShape.- Parameters:
aBytes- the byte array from which the geometry data is read.- Returns:
- an
ILcdShape. - Throws:
IOException
-
writeGeometry
public void writeGeometry(ILcdShape aShape, int aSRID, OutputStream aOutputStreamSFCT) throws IOException Encodes the geometry into OGC WKB.- Parameters:
aShape- the geometry to be encoded.aSRID- the SRID (Spatial Reference ID).aOutputStreamSFCT- the output stream in which the geometry will be encoded- Throws:
IOException- if the geometry cannot be encoded.
-