@Deprecated public class LegacyShapeReadWriterFormat extends Object
Modifier and Type | Method and Description |
---|---|
static NumberFormat |
makeNumberFormat(int fractionDigits)
Deprecated.
A convenience method to create a suitable NumberFormat for writing numbers.
|
static Shape |
readShapeOrNull(String str,
SpatialContext ctx)
Deprecated.
Reads the shape specification as defined in the class javadocs.
|
static String |
writeShape(Shape shape)
Deprecated.
Writes a shape to a String, in a format that can be read by
readShapeOrNull(String, com.spatial4j.core.context.SpatialContext) . |
static String |
writeShape(Shape shape,
NumberFormat nf)
Deprecated.
Overloaded to provide a number format.
|
public static String writeShape(Shape shape)
readShapeOrNull(String, com.spatial4j.core.context.SpatialContext)
.shape
- Not null.public static String writeShape(Shape shape, NumberFormat nf)
public static NumberFormat makeNumberFormat(int fractionDigits)
public static Shape readShapeOrNull(String str, SpatialContext ctx) throws InvalidShapeException
InvalidShapeException
is thrown.InvalidShapeException
Copyright © 2016 LocationTech. All rights reserved.