@Deprecated public class LegacyShapeWriter extends Object implements ShapeWriter
| Constructor and Description |
|---|
LegacyShapeWriter(SpatialContext ctx,
SpatialContextFactory factory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatName()
Deprecated.
|
static NumberFormat |
makeNumberFormat(int fractionDigits)
Deprecated.
A convenience method to create a suitable NumberFormat for writing numbers.
|
String |
toString(Shape shape)
Deprecated.
Write a shape to String
|
void |
write(Writer output,
Shape shape)
Deprecated.
Write a shape to the output writer
|
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 LegacyShapeWriter(SpatialContext ctx, SpatialContextFactory factory)
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 String getFormatName()
getFormatName in interface ShapeIOpublic void write(Writer output, Shape shape) throws IOException
ShapeWriterwrite in interface ShapeWriterIOExceptionpublic String toString(Shape shape)
ShapeWritertoString in interface ShapeWriterCopyright © 2025. All rights reserved.