/** * Creates a GeoJson FeatureCollection containing a list of Features * * @param objects * used to build each Feature * @return a GeoJson FeatureCollection * @deprecated use {@link #createFromGeometriesWithProperties(Iterable)} instead */ @Deprecated public GeoJsonObject create(final Iterable<LocationIterableProperties> objects) { return createFromGeometriesWithProperties(toGeometriesWithProperties(objects)); }
/** * Creates a GeometryCollection type Feature containing geometries derived from a collection of * {@link LocationIterableProperties}. <strong>Note:</strong> feature parameters are not present * in the resulting GeometryCollection and must be handled separately to avoid data loss. * * @deprecated use {@link #createGeometryCollectionFeature(Iterable)} instead * @param objects * used to build each geometry * @return a GeoJson Feature */ @Deprecated public GeoJsonObject createGeometryCollection( final Iterable<LocationIterableProperties> objects) { return createGeometryCollectionFeature(toGeometriesWithProperties(objects)); }