Klasse BinaryParser

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

public final class BinaryParser extends Object
A parser for reading geometries from a binary or hex string representation.
Autor:
Sebastian Baumhekel
  • Methodendetails

    • parse

      public static Geometry parse(byte[] value, int offset)
      Parse a hex encoded geometry
      Parameter:
      value - byte array containing the data to be parsed
      offset - offset
      Gibt zurück:
      resulting geometry for the parsed data
      Löst aus:
      IllegalArgumentException - if a contained geometry is of the wrong type or the encoding type is unknown
    • parse

      public static Geometry parse(String value)
      Parse a hex encoded geometry
      Parameter:
      value - String containing the data to be parsed
      Gibt zurück:
      resulting geometry for the parsed data
      Löst aus:
      IllegalArgumentException - if a contained geometry is of the wrong type or the encoding type is unknown