org.openstreetmap.atlas.geography.geojson.GeoJsonGeometry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
package org.openstreetmap.atlas.geography.geojson;
import com.google.gson.JsonObject;
/**
* From the spec https://tools.ietf.org/html/rfc7946#section-3.1
*
*
* A Geometry object represents points, curves, and surfaces in
* coordinate space. Every Geometry object is a GeoJSON object no
* matter where it occurs in a GeoJSON text.
*
*
* This interface is for all objects with a geojson Geometry object representation. This encompasses
* all the Geojson Geometry types in {@link GeoJsonType#isGeometryType(GeoJsonType)}.
*
* @author jklamer
*/
public interface GeoJsonGeometry extends GeoJson
{
@Override
default JsonObject asGeoJson()
{
return this.asGeoJsonGeometry();
}
/**
* This returns a Geojson object that is one of the Geometry types
* (https://tools.ietf.org/html/rfc7946#section-3.1)
*
* @return Geojson geometry representation.
*/
JsonObject asGeoJsonGeometry();
}