/** * Parse a hex encoded geometry * @param value String containing the hex data to be parsed * @return the resulting parsed geometry */ public Geometry parse(String value) { StringByteGetter bytes = new ByteGetter.StringByteGetter(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)); }