Klasse BinaryWriter

java.lang.Object
io.github.sebasbaumh.postgis.binary.BinaryWriter

public final class BinaryWriter extends Object
A writer for building a binary or hex string representation of geometries.
Autor:
Sebastian Baumhekel
  • Methodendetails

    • writeBinary

      public static byte[] writeBinary(Geometry geom)
      Write a binary encoded geometry. The geometry you put in must be consistent, geom.checkConsistency() must return true. If not, the result may be invalid WKB.
      Parameter:
      geom - the geometry to be written
      Gibt zurück:
      byte arrray containing the encoded geometry
      Siehe auch:
    • writeHexed

      public static String writeHexed(Geometry geom)
      Write a hex encoded geometry. The geometry you put in must be consistent, geom.checkConsistency() must return true. If not, the result may be invalid WKB.
      Parameter:
      geom - the geometry to be written
      Gibt zurück:
      String containing the hex encoded geometry
      Siehe auch: