FeatureCollection#

class geodesic.stac.FeatureCollection(dataset=None, query=None, **obj)[source]#

A collection of Features that is represented by a GeoJSON FeatureCollection in accordance with RFC7946 (https://datatracker.ietf.org/doc/html/rfc7946)

Parameters:
  • dataset (Dataset) – a geodesic.entanglement.Dataset associated with the FeatureCollection.

  • query (dict) – a query, if any, used to initialize this from a request to Spacetime or Boson

  • **obj – the underyling JSON data of the FeatureCollection to specify

Attributes

df

Return a Pandas DataFrame representation of this FeatureCollection

features

(list) - this FeatureCollection's Feature/Item objects

gdf

Return a geopandas.GeoDataFrame representation of this FeatureCollection

links

(dict) - links associated with this collection

sedf

Return an ArcGIS API for Python representation of this feature collection as a spatially enabled Pandas DataFrame

type

the type is always FeatureCollection.

Methods

clear()

copy()

from_file(path[, layer])

loads geospatial data using fiona and returns a new FeatureCollection

from_file_geodatabase(path, layer, **kwargs)

loads a layer from a file geodatabase and returns a new FeatureCollection

from_geojson_file(path)

loads a geojson file and returns a new FeatureCollection

from_gpx(path, layer, **kwargs)

loads a GPX file and returns a new FeatureCollection

from_shapefile(path)

loads a shapefile and returns a new FeatureCollection

fromkeys([value])

Create a new dictionary with keys from iterable and values set to value.

get(key[, default])

Return the value for key if key is in the dictionary, else default.

get_all()

items()

keys()

next_page()

pop(k[,d])

If key is not found, default is returned if given, otherwise KeyError is raised

popitem()

Remove and return a (key, value) pair as a 2-tuple.

setdefault(key[, default])

Insert key with a value of default if key is not in the dictionary.

update(*mapping, **kwargs)

values()