geonature.core.gn_synthese.blueprints.statistics

Attributes

Functions

get_taxa_count()

Get taxa count in synthese filtering with generic parameters

get_observation_count()

Get observations found in a given dataset

get_bbox()

Get bbox of observations

observation_count_per_column(column)

Get observations count group by a given column

general_stats(permissions)

Return stats about synthese.

Module Contents

geonature.core.gn_synthese.blueprints.statistics.statistics_routes[source]
geonature.core.gn_synthese.blueprints.statistics.get_taxa_count()[source]

Get taxa count in synthese filtering with generic parameters

Parameters

id_dataset: int (query parameter)

Returns

count: int:

the number of taxon

geonature.core.gn_synthese.blueprints.statistics.get_observation_count()[source]

Get observations found in a given dataset

Parameters

id_dataset: int (query parameter)

Returns

count: int:

the number of observation

geonature.core.gn_synthese.blueprints.statistics.get_bbox()[source]

Get bbox of observations

Parameters

id_dataset: int: (query parameter)

Returns

bbox: geojson:

the bounding box in geojson

geonature.core.gn_synthese.blueprints.statistics.observation_count_per_column(column)[source]

Get observations count group by a given column

This function was used to count observations per dataset, but this usage have been replaced by TDatasets.synthese_records_count. Remove this function as it is very inefficient?

geonature.core.gn_synthese.blueprints.statistics.general_stats(permissions)[source]

Return stats about synthese.