Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing tags while extracting features with geometries #332

Closed
vwvbrand opened this issue Aug 19, 2024 · 2 comments
Closed

Missing tags while extracting features with geometries #332

vwvbrand opened this issue Aug 19, 2024 · 2 comments
Labels
question Further information is requested

Comments

@vwvbrand
Copy link

Use Case Description

Extracting road features with geometries and attribute data (width) to buffer and create polygonal geometries. It would be useful to enrich existing timeseries of land-use/land-cover datasets that mostly based on remote sensing data (for example, UKCEH land-cover.

Request Description

Only limited number of tags is returned for POST/elements/(geometryType) when trying to fetch tags. Currently it is specified as "properties" : "tags". It would be more useful to bring all the tags available from OSM (or, at least, specify needed, for example, "properties" : "width").

Additional Information

For the sample request with a simple filter for road features, the query brings only 127 tags (compared to raw data fetched through Overpass Turbo API - 612 tags).
Capture_1
Capture_2

The Python code used is the following (template bounding bbox from Ohsome API documentation):
url = 'https://api.ohsome.org/v1/elements/geometry' data = {"bboxes": "8.625,49.3711,8.7334,49.4397", "properties": "tags", "time": "2024-01-01", "filter": "highway=tertiary"} response = requests.post(url, data=data) print(response.json())

'Width' column persists in the 2023-2024 timestamp, but omitted from the earlier timestamps, which complicates the analysis of historical land use change.

@vwvbrand vwvbrand added the enhancement New feature or request label Aug 19, 2024
@tyrasd
Copy link
Member

tyrasd commented Aug 22, 2024

For the sample request with a simple filter for road features, the query brings only 127 tags (compared to raw data fetched through Overpass Turbo API - 612 tags).

I cannot really replicate this behaviour. When selecting features from overpass using the same filters, bbox and time parameter (https://overpass-turbo.eu/s/1Q62), there are also exactly 127 tags returned.

'Width' column persists in the 2023-2024 timestamp, but omitted from the earlier timestamps

This is also the case when querying with overpass: https://overpass-turbo.eu/s/1Q5Y

@tyrasd tyrasd added question Further information is requested and removed enhancement New feature or request labels Aug 22, 2024
@tyrasd
Copy link
Member

tyrasd commented Aug 22, 2024

Only limited number of tags is returned […] It would be more useful to bring all the tags available from OSM

The ohsome-api returns all tags that are present on the returned features. It is not practical to return all tags available in OSM, as that would mean that every query would have to return hundreds of thousands of tags (see taginfo).

@tyrasd tyrasd closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants