Package com.targomo.client.api.pojo
Class Geometry
java.lang.Object
com.targomo.client.api.pojo.Geometry
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
Geometry
Creates a geometry that is typed as geojson with the specified CRS.- Parameters:
crs- the coordinate reference system of the geometrydata- the serialized geometry in a specified format
-
-
Method Details
-
getType
- Returns:
- the type of this geometry
-
getData
- Returns:
- the string representation of this geometry
-
getCrs
- Returns:
- the coordinate reference system for this geometry
-