public final class Shapes extends Object
Utilities for working with the Shape class.
| Modifier and Type | Method and Description |
|---|---|
static org.locationtech.spatial4j.shape.Shape |
read(org.locationtech.spatial4j.io.BinaryCodec theCodec,
byte[] theShape)
Read a shape
|
static byte[] |
write(org.locationtech.spatial4j.io.BinaryCodec theCodec,
org.locationtech.spatial4j.shape.Shape theShape)
Write the shape using the given code
|
public static byte[] write(org.locationtech.spatial4j.io.BinaryCodec theCodec,
org.locationtech.spatial4j.shape.Shape theShape)
throws IOException
theCodec - the codectheShape - the shape to writeIOException - if there was an error while writing the shapepublic static org.locationtech.spatial4j.shape.Shape read(org.locationtech.spatial4j.io.BinaryCodec theCodec,
byte[] theShape)
throws IOException
theCodec - the code for readingtheShape - the binary representation of the shapeIOException - if there was an error while parsing the shapeCopyright © 2010-2016 Stardog Union. All Rights Reserved.