Class H2GISWkb
java.lang.Object
org.hibernate.spatial.dialect.h2gis.H2GISWkb
A utility class to serialize from/to H2GIS WKB's.
Note: this utility makes it unnecessary to have a dependency on GeoDB. As long as GeoDB is not available in common maven repositories, such a dependency is to be avoided.
-
Method Summary
-
Method Details
-
to
public static byte[] to(org.geolatte.geom.Geometry geometry) Encode the specifiedGeometry
into a WKB- Parameters:
geometry
- The value to encode- Returns:
- A byte-array representing the geometry in WKB.
-
from
Decode the object into aGeometry
- Parameters:
object
- The object to decode- Returns:
- The
Geometry
-