@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.InvalidShapeException
public String getFormatName()
getFormatName
in interface ShapeIO
public Shape read(Object value) throws IOException, ParseException, InvalidShapeException
read
in interface ShapeReader
value
- -- the input value, could be a String or other objectIOException
ParseException
InvalidShapeException
public Shape readIfSupported(Object value) throws InvalidShapeException
readIfSupported
in interface ShapeReader
value
- -- the input value, could be a String or other objectInvalidShapeException
when we could read a shape, but it was
invalidInvalidShapeException
public Shape read(Reader reader) throws IOException, ParseException, InvalidShapeException
ShapeReader
Shape
from the reader.read
in interface ShapeReader
reader
- -- the input. Note, it will not be closed by this functionIOException
ParseException
InvalidShapeException
Copyright © 2020 LocationTech. All rights reserved.