Index
Filters.
¶
Merge OSM tags filter into OsmTagsFilter
type.
Optionally merges GroupedOsmTagsFilter
into OsmTagsFilter
to allow loaders to load all
defined groups during single operation.
PARAMETER | DESCRIPTION |
---|---|
osm_tags_filter |
OSM tags filter definition.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
AttributeError
|
When provided tags don't match both
|
RETURNS | DESCRIPTION |
---|---|
OsmTagsFilter
|
Merged filters.
TYPE:
|
Source code in srai/loaders/osm_loaders/filters/_typing.py
¶
Download the OSM's most popular tags from taginfo api.
This is a wrapper around the popular
taginfo api endpoint [1].
It queries the API, and optionally filters the results
according to argument values.
PARAMETER | DESCRIPTION |
---|---|
in_wiki_only |
If True, only return results tags that have at least one wiki page. Defaults to False.
TYPE:
|
min_count(int, |
Minimum number of objects in OSM with this tag attached, to include the tag in the results. Defaults to 0 (no filtering).
TYPE:
|
min_fraction(float, |
What fraction of all objects have to have this tag attached, to include it in the results. Defaults to 0.0 (no filtering).
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
OsmTagsFilter
|
Dict[str, List[str]]: dictionary containing the downloaded popular tags. |