Package com.complexible.stardog.spatial
Class Shapes
java.lang.Object
com.complexible.stardog.spatial.Shapes
Utilities for working with the Shape class.
- Since:
- 4.0
- Version:
- 4.0
- Author:
- Michael Grove
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.spatial4j.shape.Shaperead(org.locationtech.spatial4j.io.BinaryCodec theCodec, byte[] theShape) Read a shapestatic byte[]write(org.locationtech.spatial4j.io.BinaryCodec theCodec, org.locationtech.spatial4j.shape.Shape theShape) Write the shape using the given code
-
Method Details
-
write
public static byte[] write(org.locationtech.spatial4j.io.BinaryCodec theCodec, org.locationtech.spatial4j.shape.Shape theShape) throws IOException Write the shape using the given code- Parameters:
theCodec- the codectheShape- the shape to write- Returns:
- the binary representation of the shape
- Throws:
IOException- if there was an error while writing the shape
-
read
public static org.locationtech.spatial4j.shape.Shape read(org.locationtech.spatial4j.io.BinaryCodec theCodec, byte[] theShape) throws IOException Read a shape- Parameters:
theCodec- the code for readingtheShape- the binary representation of the shape- Returns:
- the shape
- Throws:
IOException- if there was an error while parsing the shape
-