@Deprecated public class LegacyShapeReader extends Object implements ShapeReader
| Constructor and Description |
|---|
LegacyShapeReader(SpatialContext ctx,
SpatialContextFactory factory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatName()
Deprecated.
|
Shape |
read(Object value)
Deprecated.
|
Shape |
read(Reader reader)
Deprecated.
Read a
Shape from the reader. |
Shape |
readIfSupported(Object value)
Deprecated.
|
static Shape |
readShapeOrNull(String str,
SpatialContext ctx)
Deprecated.
Reads the shape specification as defined in the class javadocs.
|
public LegacyShapeReader(SpatialContext ctx, SpatialContextFactory factory)
public static Shape readShapeOrNull(String str, SpatialContext ctx) throws InvalidShapeException
InvalidShapeException is thrown.InvalidShapeExceptionpublic String getFormatName()
getFormatName in interface ShapeIOpublic Shape read(Object value) throws IOException, ParseException, InvalidShapeException
read in interface ShapeReadervalue - -- the input value, could be a String or other objectIOExceptionParseExceptionInvalidShapeExceptionpublic Shape readIfSupported(Object value) throws InvalidShapeException
readIfSupported in interface ShapeReadervalue - -- the input value, could be a String or other objectInvalidShapeException when we could read a shape, but it was
invalidInvalidShapeExceptionpublic Shape read(Reader reader) throws IOException, ParseException, InvalidShapeException
ShapeReaderShape from the reader.read in interface ShapeReaderreader - -- the input. Note, it will not be closed by this functionIOExceptionParseExceptionInvalidShapeExceptionCopyright © 2025. All rights reserved.