public abstract class AbstractGeometryParser<P extends Position,G extends Geometry<P>>
extends com.fasterxml.jackson.databind.JsonDeserializer<G>
| Constructor and Description |
|---|
AbstractGeometryParser(Context<P> context) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
canHandle(com.fasterxml.jackson.databind.JsonNode root) |
G |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
protected LinearPositionsHolder |
getCoordinatesArrayAsLinear(com.fasterxml.jackson.databind.JsonNode root) |
protected LinearPositionsListHolder |
getCoordinatesArrayAsPolygonal(com.fasterxml.jackson.databind.JsonNode root) |
protected PolygonListHolder |
getCoordinatesArrayAsPolygonList(com.fasterxml.jackson.databind.JsonNode root) |
protected PointHolder |
getCoordinatesArrayAsSinglePosition(com.fasterxml.jackson.databind.JsonNode root) |
protected CrsId |
getCrsId(com.fasterxml.jackson.databind.JsonNode root) |
protected CoordinateReferenceSystem<P> |
getDefaultCrs() |
protected com.fasterxml.jackson.databind.JsonNode |
getRoot(com.fasterxml.jackson.core.JsonParser p) |
protected GeometryType |
getType(com.fasterxml.jackson.databind.JsonNode root) |
protected boolean |
isFeatureSet(Feature f) |
(package private) G |
parse(com.fasterxml.jackson.databind.JsonNode root) |
abstract G |
parse(com.fasterxml.jackson.databind.JsonNode root,
CoordinateReferenceSystem<P> crs) |
protected CoordinateReferenceSystem<P> |
resolveCrs(com.fasterxml.jackson.databind.JsonNode root,
int coordinateDimension,
CoordinateReferenceSystem<P> defaultCrs) |
private LinearPositionsHolder |
toLinearPositionsHolder(com.fasterxml.jackson.databind.JsonNode coordinates) |
protected LinearPositionsListHolder |
toLinearPositionsListHolder(com.fasterxml.jackson.databind.JsonNode coordinates) |
protected PointHolder |
toSinglePositionCoordinatesHolder(com.fasterxml.jackson.databind.JsonNode coordinates) |
deserialize, deserializeWithType, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerG parse(com.fasterxml.jackson.databind.JsonNode root) throws GeoJsonProcessingException
GeoJsonProcessingExceptionpublic abstract G parse(com.fasterxml.jackson.databind.JsonNode root, CoordinateReferenceSystem<P> crs) throws GeoJsonProcessingException
GeoJsonProcessingExceptionpublic G deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException, com.fasterxml.jackson.core.JsonProcessingException
protected com.fasterxml.jackson.databind.JsonNode getRoot(com.fasterxml.jackson.core.JsonParser p)
throws java.io.IOException,
GeoJsonProcessingException
java.io.IOExceptionGeoJsonProcessingExceptionprotected abstract void canHandle(com.fasterxml.jackson.databind.JsonNode root)
throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected CoordinateReferenceSystem<P> getDefaultCrs()
protected PointHolder getCoordinatesArrayAsSinglePosition(com.fasterxml.jackson.databind.JsonNode root) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected LinearPositionsHolder getCoordinatesArrayAsLinear(com.fasterxml.jackson.databind.JsonNode root) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprivate LinearPositionsHolder toLinearPositionsHolder(com.fasterxml.jackson.databind.JsonNode coordinates) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected LinearPositionsListHolder getCoordinatesArrayAsPolygonal(com.fasterxml.jackson.databind.JsonNode root) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected LinearPositionsListHolder toLinearPositionsListHolder(com.fasterxml.jackson.databind.JsonNode coordinates) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected PolygonListHolder getCoordinatesArrayAsPolygonList(com.fasterxml.jackson.databind.JsonNode root) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected PointHolder toSinglePositionCoordinatesHolder(com.fasterxml.jackson.databind.JsonNode coordinates) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected boolean isFeatureSet(Feature f)
protected GeometryType getType(com.fasterxml.jackson.databind.JsonNode root) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected CrsId getCrsId(com.fasterxml.jackson.databind.JsonNode root) throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected CoordinateReferenceSystem<P> resolveCrs(com.fasterxml.jackson.databind.JsonNode root, int coordinateDimension, CoordinateReferenceSystem<P> defaultCrs) throws GeoJsonProcessingException
GeoJsonProcessingException