Interface ShapeReader
- All Superinterfaces:
ShapeIO
- All Known Implementing Classes:
GeoJSONReader, JtsWKTReaderShapeParser, LegacyShapeReader, PolyshapeReader, WKTReader, WktShapeParser
Implementations are expected to be thread safe
-
Field Summary
-
Method Summary
Methods inherited from interface ShapeIO
getFormatName
-
Method Details
-
read
- Parameters:
value- -- the input value, could be a String or other object- Returns:
- a shape valid shape (not null)
- Throws:
IOExceptionParseExceptionInvalidShapeException
-
readIfSupported
- Parameters:
value- -- the input value, could be a String or other object- Returns:
- a shape or null, if the input was un readable.
This will throw
InvalidShapeExceptionwhen we could read a shape, but it was invalid - Throws:
InvalidShapeException
-
read
Read aShapefrom the reader.- Parameters:
reader- -- the input. Note, it will not be closed by this function- Returns:
- a valid Shape (never null)
- Throws:
IOExceptionParseExceptionInvalidShapeException
-