org.openstreetmap.atlas.geography.geojson.GeoJsonFeatureCollection 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.3
*
*
* A GeoJSON object with the type "FeatureCollection" is a
* FeatureCollection object. A FeatureCollection object has a member
* with the name "features". The value of "features" is a JSON array.
* Each element of the array is a Feature object as defined above. It
* is possible for this array to be empty.
*
*
* @param
* The Type of object that implements the {@link GeoJsonFeature} interface that is
* returned by this implementation
* @author jklamer
*/
public interface GeoJsonFeatureCollection
extends GeoJsonCollection, GeoJsonProperties
{
@Override
default JsonObject asGeoJson()
{
return GeoJsonUtils.featureCollection(this);
}
@Override
default GeoJsonType getGeoJsonType()
{
return GeoJsonType.FEATURE_COLLECTION;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy