Class TLcdHanaGeometrySupport

java.lang.Object
com.luciad.format.hana.TLcdHanaGeometrySupport

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.

Since:
2014.0
  • Constructor Details

    • TLcdHanaGeometrySupport

      public TLcdHanaGeometrySupport()
      Default constructor.
  • Method Details

    • readGeometry

      public ILcdShape readGeometry(byte[] aBytes) throws IOException
      Reads an OGC WKB byte array and converts it to an ILcdShape.
      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.