Class GeoJSONDecoder

java.lang.Object
org.n52.io.geojson.GeoJSONDecoder

public class GeoJSONDecoder extends Object
borrowed from https://github.com/52North/SOS/blob/4.3.4/coding/json/src/main/java/org/n52/sos/decode/json/impl/GeoJSONDecoder.java
Since:
2.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.locationtech.jts.geom.Coordinate
    decodeCoordinate(com.fasterxml.jackson.databind.JsonNode node)
     
    protected org.locationtech.jts.geom.impl.CoordinateArraySequence
    decodeCoordinates(com.fasterxml.jackson.databind.JsonNode node)
     
    protected org.locationtech.jts.geom.GeometryFactory
    decodeCRS(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory factory)
     
    org.locationtech.jts.geom.Geometry
    decodeGeometry(com.fasterxml.jackson.databind.JsonNode node)
     
    protected org.locationtech.jts.geom.Geometry
    decodeGeometry(Object o, org.locationtech.jts.geom.GeometryFactory parentFactory)
     
    protected org.locationtech.jts.geom.GeometryCollection
    decodeGeometryCollection(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.LineString
    decodeLineString(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.GeometryFactory
    decodeLinkedCRS(com.fasterxml.jackson.databind.JsonNode properties, org.locationtech.jts.geom.GeometryFactory factory)
     
    protected org.locationtech.jts.geom.MultiLineString
    decodeMultiLineString(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.MultiPoint
    decodeMultiPoint(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.MultiPolygon
    decodeMultiPolygon(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.GeometryFactory
    decodeNamedCRS(com.fasterxml.jackson.databind.JsonNode properties, org.locationtech.jts.geom.GeometryFactory factory)
     
    protected org.locationtech.jts.geom.Point
    decodePoint(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.Polygon
    decodePolygon(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.Polygon
    decodePolygonCoordinates(com.fasterxml.jackson.databind.JsonNode coordinates, org.locationtech.jts.geom.GeometryFactory fac)
     
    protected org.locationtech.jts.geom.GeometryFactory
    getGeometryFactory(int srid, org.locationtech.jts.geom.GeometryFactory factory)
     
    protected org.locationtech.jts.geom.GeometryFactory
    getGeometryFactory(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory factory)
     
    protected String
    getType(com.fasterxml.jackson.databind.JsonNode node)
     
    protected boolean
    isNumber(com.fasterxml.jackson.databind.JsonNode x)
     
    protected com.fasterxml.jackson.databind.JsonNode
    requireCoordinates(com.fasterxml.jackson.databind.JsonNode node)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • GeoJSONDecoder

      public GeoJSONDecoder()
  • Method Details

    • decodeGeometry

      public org.locationtech.jts.geom.Geometry decodeGeometry(com.fasterxml.jackson.databind.JsonNode node) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeGeometry

      protected org.locationtech.jts.geom.Geometry decodeGeometry(Object o, org.locationtech.jts.geom.GeometryFactory parentFactory) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeCoordinates

      protected org.locationtech.jts.geom.impl.CoordinateArraySequence decodeCoordinates(com.fasterxml.jackson.databind.JsonNode node) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodePolygonCoordinates

      protected org.locationtech.jts.geom.Polygon decodePolygonCoordinates(com.fasterxml.jackson.databind.JsonNode coordinates, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeMultiLineString

      protected org.locationtech.jts.geom.MultiLineString decodeMultiLineString(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeLineString

      protected org.locationtech.jts.geom.LineString decodeLineString(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeMultiPoint

      protected org.locationtech.jts.geom.MultiPoint decodeMultiPoint(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodePoint

      protected org.locationtech.jts.geom.Point decodePoint(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodePolygon

      protected org.locationtech.jts.geom.Polygon decodePolygon(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeMultiPolygon

      protected org.locationtech.jts.geom.MultiPolygon decodeMultiPolygon(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeGeometryCollection

      protected org.locationtech.jts.geom.GeometryCollection decodeGeometryCollection(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory fac) throws GeoJSONException
      Throws:
      GeoJSONException
    • requireCoordinates

      protected com.fasterxml.jackson.databind.JsonNode requireCoordinates(com.fasterxml.jackson.databind.JsonNode node) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeCoordinate

      protected org.locationtech.jts.geom.Coordinate decodeCoordinate(com.fasterxml.jackson.databind.JsonNode node) throws GeoJSONException
      Throws:
      GeoJSONException
    • getGeometryFactory

      protected org.locationtech.jts.geom.GeometryFactory getGeometryFactory(int srid, org.locationtech.jts.geom.GeometryFactory factory)
    • getGeometryFactory

      protected org.locationtech.jts.geom.GeometryFactory getGeometryFactory(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory factory) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeCRS

      protected org.locationtech.jts.geom.GeometryFactory decodeCRS(com.fasterxml.jackson.databind.JsonNode node, org.locationtech.jts.geom.GeometryFactory factory) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeNamedCRS

      protected org.locationtech.jts.geom.GeometryFactory decodeNamedCRS(com.fasterxml.jackson.databind.JsonNode properties, org.locationtech.jts.geom.GeometryFactory factory) throws GeoJSONException
      Throws:
      GeoJSONException
    • decodeLinkedCRS

      protected org.locationtech.jts.geom.GeometryFactory decodeLinkedCRS(com.fasterxml.jackson.databind.JsonNode properties, org.locationtech.jts.geom.GeometryFactory factory) throws GeoJSONException
      Throws:
      GeoJSONException
    • getType

      protected String getType(com.fasterxml.jackson.databind.JsonNode node) throws GeoJSONException
      Throws:
      GeoJSONException
    • isNumber

      protected boolean isNumber(com.fasterxml.jackson.databind.JsonNode x)