public class PolyshapeReader extends Object implements ShapeReader
PolyshapeWriter| Modifier and Type | Class and Description |
|---|---|
static class |
PolyshapeReader.XReader
from Apache 2.0 licensed:
https://github.com/googlemaps/android-maps-utils/blob/master/library/src/com/google/maps/android/PolyUtil.java
|
| Constructor and Description |
|---|
PolyshapeReader(SpatialContext ctx,
SpatialContextFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatName() |
protected Shape |
makeCollection(List<? extends Shape> shapes)
Subclass may try to make multiple points into a MultiPoint
|
Shape |
read(Object value) |
Shape |
read(Reader r)
Read a
Shape from the reader. |
Shape |
readIfSupported(Object value) |
protected Shape |
readPolygon(PolyshapeReader.XReader reader) |
public PolyshapeReader(SpatialContext ctx, SpatialContextFactory factory)
public String getFormatName()
getFormatName in interface ShapeIOprotected Shape makeCollection(List<? extends Shape> shapes)
public 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 final Shape read(Reader r) throws ParseException, IOException
ShapeReaderShape from the reader.read in interface ShapeReaderr - -- the input. Note, it will not be closed by this functionParseExceptionIOExceptionprotected Shape readPolygon(PolyshapeReader.XReader reader) throws IOException
IOExceptionCopyright © 2025. All rights reserved.