geonature.core.gn_synthese.blueprints.taxon_info

Attributes

Functions

resolve_taxon_sheet(endpoint, values)

get_taxa_distribution()

Get taxa distribution for a given dataset or acquisition framework

get_color_taxon()

Get color of taxon in areas (vue synthese.v_color_taxon_area).

get_autocomplete_taxons_synthese()

Autocomplete taxon for web search (based on all taxon in Synthese).

get_taxon_tree()

Get taxon tree.

taxon_medias(permissions, cd_ref, sheet)

is_authorized(permissions, cd_ref, sheet)

taxon_observers(permissions, cd_ref, sheet)

Module Contents

geonature.core.gn_synthese.blueprints.taxon_info.taxon_info_routes[source]
geonature.core.gn_synthese.blueprints.taxon_info.resolve_taxon_sheet(endpoint, values)[source]
geonature.core.gn_synthese.blueprints.taxon_info.get_taxa_distribution()[source]

Get taxa distribution for a given dataset or acquisition framework and grouped by a certain taxa rank

geonature.core.gn_synthese.blueprints.taxon_info.get_color_taxon()[source]

Get color of taxon in areas (vue synthese.v_color_taxon_area).

Query str code_area_type:

Type area code (ref_geo.bib_areas_types.type_code)

Query int id_area:

Id of area (ref_geo.l_areas.id_area)

Query int cd_nom:

taxon code (taxonomie.taxref.cd_nom)

Those three parameters can be multiples :returns: Array<dict<VColorAreaTaxon>>

geonature.core.gn_synthese.blueprints.taxon_info.get_autocomplete_taxons_synthese()[source]

Autocomplete taxon for web search (based on all taxon in Synthese).

The request use trigram algorithm to get relevent results

Query str search_name:

the search name (use sql ilike statement and puts « % » for spaces)

Query str regne:

filter with kingdom

:query str group2_inpn : filter with INPN group 2

geonature.core.gn_synthese.blueprints.taxon_info.get_taxon_tree()[source]

Get taxon tree.

geonature.core.gn_synthese.blueprints.taxon_info.taxon_medias(permissions, cd_ref, sheet)[source]
geonature.core.gn_synthese.blueprints.taxon_info.is_authorized(permissions, cd_ref, sheet)[source]
geonature.core.gn_synthese.blueprints.taxon_info.taxon_observers(permissions, cd_ref, sheet)[source]