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

org.openstreetmap.atlas.geography.geojson.GeoJsonFeatureCollection 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.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