Package com.complexible.stardog.spatial
Class Shapes
- java.lang.Object
-
- com.complexible.stardog.spatial.Shapes
-
public final class Shapes extends java.lang.ObjectUtilities for working with the
Shapeclass.- Since:
- 4.0
- Version:
- 4.0
- Author:
- Michael Grove
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
write
public static byte[] write(org.locationtech.spatial4j.io.BinaryCodec theCodec, org.locationtech.spatial4j.shape.Shape theShape) throws java.io.IOExceptionWrite the shape using the given code- Parameters:
theCodec- the codectheShape- the shape to write- Returns:
- the binary representation of the shape
- Throws:
java.io.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 java.io.IOExceptionRead a shape- Parameters:
theCodec- the code for readingtheShape- the binary representation of the shape- Returns:
- the shape
- Throws:
java.io.IOException- if there was an error while parsing the shape
-
-