Class GeometryToJsonConverter

java.lang.Object
org.bremersee.geojson.converter.serialization.GeometryToJsonConverter
All Implemented Interfaces:
Serializable

public class GeometryToJsonConverter extends Object implements Serializable
The geometry to json converter.
Author:
Christian Bremer
See Also:
  • Constructor Details

    • GeometryToJsonConverter

      public GeometryToJsonConverter()
      Instantiates a new geometry to json converter.
    • GeometryToJsonConverter

      public GeometryToJsonConverter(boolean withBoundingBox, boolean useBigDecimal)
      Instantiates a new geometry to json converter.
      Parameters:
      withBoundingBox - with bounding box
      useBigDecimal - use big decimal
  • Method Details

    • convert

      public Map<String,Object> convert(org.locationtech.jts.geom.Geometry source)
      Convert map.
      Parameters:
      source - the source
      Returns:
      the map