All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstreetmap.atlas.geography.geojson.GeoJsonGeometry Maven / Gradle / Ivy

There is a newer version: 7.0.8
Show newest version
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(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy