@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
LegacyShapeReader.readShapeOrNull(String, 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)
LegacyShapeReader.readShapeOrNull(String, SpatialContext)
shape
- Not null.public static String writeShape(Shape shape, NumberFormat nf)
public static NumberFormat makeNumberFormat(int fractionDigits)
public String getFormatName()
getFormatName
in interface ShapeIO
public void write(Writer output, Shape shape) throws IOException
ShapeWriter
write
in interface ShapeWriter
IOException
public String toString(Shape shape)
ShapeWriter
toString
in interface ShapeWriter
Copyright © 2020 LocationTech. All rights reserved.