Class GeoJSONEncoder

java.lang.Object
org.n52.svalbard.encode.json.JSONEncoder<org.locationtech.jts.geom.Geometry>
org.n52.svalbard.encode.json.GeoJSONEncoder
All Implemented Interfaces:
Component<EncoderKey>, Keyed<EncoderKey>, Encoder<com.fasterxml.jackson.databind.JsonNode,org.locationtech.jts.geom.Geometry>

public class GeoJSONEncoder extends JSONEncoder<org.locationtech.jts.geom.Geometry>
TODO JavaDoc
Since:
1.0.0
  • Field Details

  • Constructor Details

    • GeoJSONEncoder

      public GeoJSONEncoder()
  • Method Details

    • encodeJSON

      public com.fasterxml.jackson.databind.node.ObjectNode encodeJSON(org.locationtech.jts.geom.Geometry value) throws JSONEncodingException
      Specified by:
      encodeJSON in class JSONEncoder<org.locationtech.jts.geom.Geometry>
      Throws:
      JSONEncodingException
    • encodeGeometry

      protected com.fasterxml.jackson.databind.node.ObjectNode encodeGeometry(org.locationtech.jts.geom.Geometry geometry, int parentSrid) throws JSONEncodingException
      Throws:
      JSONEncodingException
    • encode

      protected com.fasterxml.jackson.databind.node.ObjectNode encode(org.locationtech.jts.geom.Point geometry, int parentSrid)
    • encode

      protected com.fasterxml.jackson.databind.node.ObjectNode encode(org.locationtech.jts.geom.LineString geometry, int parentSrid)
    • encode

      protected com.fasterxml.jackson.databind.node.ObjectNode encode(org.locationtech.jts.geom.Polygon geometry, int parentSrid)
    • encode

      protected com.fasterxml.jackson.databind.node.ObjectNode encode(org.locationtech.jts.geom.MultiPoint geometry, int parentSrid)
    • encode

      protected com.fasterxml.jackson.databind.node.ObjectNode encode(org.locationtech.jts.geom.MultiLineString geometry, int parentSrid)
    • encode

      protected com.fasterxml.jackson.databind.node.ObjectNode encode(org.locationtech.jts.geom.MultiPolygon geometry, int parentSrid)
    • encode

      public com.fasterxml.jackson.databind.node.ObjectNode encode(org.locationtech.jts.geom.GeometryCollection geometry, int parentSrid) throws JSONEncodingException
      Throws:
      JSONEncodingException
    • encodeCoordinate

      protected com.fasterxml.jackson.databind.node.ArrayNode encodeCoordinate(org.locationtech.jts.geom.Coordinate coordinate)
    • encodeCoordinates

      protected com.fasterxml.jackson.databind.node.ArrayNode encodeCoordinates(org.locationtech.jts.geom.CoordinateSequence coordinates)
    • encodeCoordinates

      protected com.fasterxml.jackson.databind.node.ArrayNode encodeCoordinates(org.locationtech.jts.geom.Point geometry)
    • encodeCoordinates

      protected com.fasterxml.jackson.databind.node.ArrayNode encodeCoordinates(org.locationtech.jts.geom.LineString geometry)
    • encodeCoordinates

      protected com.fasterxml.jackson.databind.node.ArrayNode encodeCoordinates(org.locationtech.jts.geom.Polygon geometry)
    • encodeCRS

      protected int encodeCRS(com.fasterxml.jackson.databind.node.ObjectNode json, org.locationtech.jts.geom.Geometry geometry, int parentSrid)
    • encodeCRS

      protected int encodeCRS(int srid, int parentSrid, com.fasterxml.jackson.databind.node.ObjectNode json)