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 org.geolatte.geom.json.LinearPositionsHolder |
getCoordinatesArrayAsLinear(com.fasterxml.jackson.databind.JsonNode root) |
protected LinearPositionsListHolder |
getCoordinatesArrayAsPolygonal(com.fasterxml.jackson.databind.JsonNode root) |
protected org.geolatte.geom.json.PolygonListHolder |
getCoordinatesArrayAsPolygonList(com.fasterxml.jackson.databind.JsonNode root) |
protected org.geolatte.geom.json.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) |
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) |
protected LinearPositionsListHolder |
toLinearPositionsListHolder(com.fasterxml.jackson.databind.JsonNode coordinates) |
protected org.geolatte.geom.json.PointHolder |
toSinglePositionCoordinatesHolder(com.fasterxml.jackson.databind.JsonNode coordinates) |
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic 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 IOException, com.fasterxml.jackson.core.JsonProcessingException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<G extends Geometry<P>>IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionprotected com.fasterxml.jackson.databind.JsonNode getRoot(com.fasterxml.jackson.core.JsonParser p)
throws IOException,
GeoJsonProcessingException
protected abstract void canHandle(com.fasterxml.jackson.databind.JsonNode root)
throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected CoordinateReferenceSystem<P> getDefaultCrs()
protected org.geolatte.geom.json.PointHolder getCoordinatesArrayAsSinglePosition(com.fasterxml.jackson.databind.JsonNode root)
throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected org.geolatte.geom.json.LinearPositionsHolder getCoordinatesArrayAsLinear(com.fasterxml.jackson.databind.JsonNode root)
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 org.geolatte.geom.json.PolygonListHolder getCoordinatesArrayAsPolygonList(com.fasterxml.jackson.databind.JsonNode root)
throws GeoJsonProcessingException
GeoJsonProcessingExceptionprotected org.geolatte.geom.json.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
GeoJsonProcessingExceptionCopyright © 2018 geolatte.org. All rights reserved.