Class Geometry

java.lang.Object
com.targomo.client.api.pojo.Geometry
All Implemented Interfaces:
Serializable

public class Geometry extends Object implements Serializable
Created by gerb on 07.06.18. This class is purposefully created very generally. Currently (13.06.2018) the targomo backend only supports geojson objects. See the GeoJSON specification for further details. The geometry types Polygon and MultiPolygon are supported.
See Also:
  • Constructor Details

    • Geometry

      public Geometry(Integer crs, String data)
      Creates a geometry that is typed as geojson with the specified CRS.
      Parameters:
      crs - the coordinate reference system of the geometry
      data - the serialized geometry in a specified format
  • Method Details

    • getType

      public String getType()
      Returns:
      the type of this geometry
    • getData

      public String getData()
      Returns:
      the string representation of this geometry
    • getCrs

      public Integer getCrs()
      Returns:
      the coordinate reference system for this geometry