/** * Parse a hex encoded geometry * * Is synchronized to protect offset counter. (Unfortunately, Java does not * have neither call by reference nor multiple return values.) * * @param value String 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(String value, GeneralPath path) { StringByteGetter bytes = new ByteGetter.StringByteGetter(value); return parseGeometry(valueGetterForEndian(bytes), path); }
/** * Parse a hex encoded geometry * * Is synchronized to protect offset counter. (Unfortunately, Java does not * have neither call by reference nor multiple return values.) * * @param value String containing the data to be parsed * @return resulting geometry for the parsed data */ public synchronized Geometry parse(String value) { StringByteGetter bytes = new ByteGetter.StringByteGetter(value); return parseGeometry(valueGetterForEndian(bytes)); }
/** * Parse the given {@link String} into a JTS {@link org.locationtech.jts.geom.Geometry}. * * @param value {@link String} to parse. * * @return Parsed JTS {@link org.locationtech.jts.geom.Geometry}. */ public Geometry parse(String value) { ByteGetter.StringByteGetter bytes = new ByteGetter.StringByteGetter(value); return this.parseGeometry(valueGetterForEndian(bytes)); }
/** * Parse a hex encoded geometry * * Is synchronized to protect offset counter. (Unfortunately, Java does not * have neither call by reference nor multiple return values.) * * @param value String containing the data to be parsed * @return resulting geometry for the parsed data */ public synchronized Geometry parse(String value) { StringByteGetter bytes = new ByteGetter.StringByteGetter(value); return parseGeometry(valueGetterForEndian(bytes)); }
/** * 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)); }