/** * Parse a binary encoded geometry. * * Is synchronized to protect offset counter. (Unfortunately, Java does not * have neither call by reference nor multiple return values.) * * @param value byte array representation of the value to be parsed * @param path GeneralPath to provide the parsed value to * * @return a potential SRID or Geometry.UNKNOWN_SRID if not present */ public synchronized int parse(byte[] value, GeneralPath path) { BinaryByteGetter bytes = new ByteGetter.BinaryByteGetter(value); return parseGeometry(valueGetterForEndian(bytes), path); }
/** * Parse a binary encoded geometry. * * Is synchronized to protect offset counter. (Unfortunately, Java does not * have neither call by reference nor multiple return values.) * * @param value byte array containing the data to be parsed * @return resulting geometry for the parsed data */ public synchronized Geometry parse(byte[] value) { BinaryByteGetter bytes = new ByteGetter.BinaryByteGetter(value); return parseGeometry(valueGetterForEndian(bytes)); }
/** * Parse a binary encoded geometry. * * Is synchronized to protect offset counter. (Unfortunately, Java does not * have neither call by reference nor multiple return values.) * * @param value byte array containing the data to be parsed * @return resulting geometry for the parsed data */ public synchronized Geometry parse(byte[] value) { BinaryByteGetter bytes = new ByteGetter.BinaryByteGetter(value); return parseGeometry(valueGetterForEndian(bytes)); }
/** * Parse a binary encoded geometry. * @param value byte array containing the binary encoded geometru * @return the resulting parsed geometry */ public Geometry parse(byte[] value) { BinaryByteGetter bytes = new ByteGetter.BinaryByteGetter(value); return parseGeometry(valueGetterForEndian(bytes)); }
/** * Parse the given byte array into a JTS {@link org.locationtech.jts.geom.Geometry}. * * @param value byte array to parse. * * @return Parsed JTS {@link org.locationtech.jts.geom.Geometry}. */ public Geometry parse(byte[] value) { ByteGetter.BinaryByteGetter bytes = new ByteGetter.BinaryByteGetter(value); return this.parseGeometry(valueGetterForEndian(bytes)); }