-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Extract surface and smoothness example image list in shared repository #3592
Comments
If you are interested in the original files and licenses you can have a look at https://github.com/Helium314/StreetComplete/blob/656aa329646749e569169182773cbb425c6839da/app/src/main/res/authors.txt#L164-L186 |
general:
about file format: I would store images itself and just have links/info about original sources. This way fetching third part links of already external repository and we would not be vulnerable to renames of files on external sites and everything relevant would be fetched by cloning repository |
@tordans Instead of setting up new infrastructure to do this, why not reuse the wikidata/wikibase setup that is powering the OSM-wiki? |
wikidata/wikibase setup is suffering from lack of review of changes - it is not even possible to effectively watchlist data items (if you try you will get notifications about label changes in all languages, this makes watchlisting ineffective unlike for wiki pages). And in general data quality and edit quality there is not very high. If it would be used I am not going to neither maintain related data items, nor review edits made there (what would be necessary before each release) and would be against using it in StreetComplete. inability to store files itself is a lesser issue, there is also problem with fact that there is no policy which files should be preferred - and in some cases preferred image between different use cases would be different very minor issue is that wikibase API is really annoying (I still have not figured out how to parse for example P46 property "combination", see say https://wiki.openstreetmap.org/wiki/Item:Q5007). Editor is heavily JS based and it lags even on modern laptop. Android emulation + Android Studio is more responsive than data item editor. Yes, here I am old man yelling at |
(I first answered in pietervdvn/MapComplete#545 (comment), but lets keep the thread here.) Wikidata is awesome, but not for complex presets and structures this.
Update: Just to clarify, I personally disagree with matkoniecz' general dislike of Wikidata. It would love to see it used more in other situations. But I don't see it working here. — But let's try to stay on topic of the issue at hand :-). |
It can be handled by adding P28 to items representing given values, see say https://wiki.openstreetmap.org/wiki/Item:Q21492 (I just added it to demonstrate how it can be done)
That is also my fundamental objection (not my personal dislike that may be misguided)
Note that Wikidata is a different project ( https://www.wikidata.org/ - excellent for storing interwiki links between Wikipedia articles in different languages, quite good for unique ids assigned to notable objects). OSM data items are using Wikibase software powering it. |
The effort that it would make to pull this data in SC is certainly a factor. Should it be too complex, this project should be postponed. I cannot even make a guess about this nor would I be able to help develop this part. However, for my own projects I would need to extract the data from SC anyways, so we could just as well do it together. The MC theme I linked would need this data, even if it does not get pull automatically in MC but is just used when developing the theme. And a web- or wiki-overview table of the images use in SC would help increase adoption (even when looking up tags manually) and acceptance of the SC work IMO. GoMap already is happy to pull good presets and data from iD and SC. So if the information is accessible easily, that would help a lot to get the conversation about an integration going. – The later is true for iD as well IMO. Repo ownership: I don't know, yet (see my list of possible repo holding organisations). But I don't expect this small piece of shared tagging knowledge to be changing too often – its a lot simpler than ELI or id-tagging-schema. |
I added "feedback required" as
remains open. It is not extremely complex but it is noticeable more complex and doing it just in case seems a poor idea. |
Just to clarify: I will do it for myself to create a webpage (and probably wiki page) of the mapping table for reference outside of SC. And to extract the data for a MC-theme. I would prefer we joined forces on this so I don't have to monitor if changes in SC are relevant to this list. (However, I read the release notes, so I would likely be informed, so that might be fine.) |
Offtopic: Wikidata vs Wikibase
That is very confusing to me. The tag we use is But not to get too far off topic here, let's just clarify for this thread, that we are talking about those data structures https://wiki.openstreetmap.org/wiki/Item:Q746 (Data Item 'surface') |
In such case there is an actual user, great!
I created https://wiki.openstreetmap.org/wiki/Wikibase in attempt to explain it. If it is still confusing - can you write at https://wiki.openstreetmap.org/w/index.php?title=Talk:Wikibase&action=edit ? (requires wiki account) |
And if this implies an (automatic) translation from StreetComplete into MapComplete, I'd be a user too! Very thrilled to see the outcome, especially if it opens up the StreetComplete-themes... |
This can be done already by parsing language files (XML in predictable locations so relatively easy, may be useful already for surface names). For how this idea can be implemented I see following options: (A) this new project has all this image data, StreetComplete would fetch credits, amend authors file (replacing part between lines (B) this new project would contain already resized images, including all sizes needed by StreetComplete. So resizing would not be needed (C) invert idea: it would be script that extracts StreetComplete content making it more structured and easier to reuse (for example parsing authors file to get image links, parsing translation file and producing nice json). No additional complexity in StreetComplete, translations would be included, any contributions would need to go through StreetComplete. For parsing authors file I actually have Kotlin code doing this but it would be a bit fragile and acts as detector of any missing authorship information. The largest negative would be that building smoothness example library could not be done step by step (unless StreetComplete would accept images to be used by not yet implemented quest). |
You are right, all the effort and contributions that have flown into the implementation of #3617 should not only profit StreetComplete. After all, along the way, much more example photos were searched and created that didn't make it into the quest because after all, only one picture is displayed for each combination of So alright, I went through the whole PR and its contributions again, uploaded all the pictures I found most representative to the openstreetmap wiki that weren't yet and weren't yet on wikimedia commons and created this page: https://wiki.openstreetmap.org/wiki/Key:smoothness/Gallery It also includes the source pictures chosen in the end for #3617, but not only |
And in case you want to use exactly the same pictures as StreetComplete for MapComplete, @tordans already created that spreadsheet https://docs.google.com/spreadsheets/d/1-JiRgPPSByqyt7qQagFYJ3O7OvVh2DTJY_2-x9oeExs/edit#gid=0 in which I also added the descriptions for each. |
Thanks a lot @westnordost for this work. I still think it helpful to extract the data from SC/the Google Doc to a shared repository with a JSON file in it (see gist) and will likely do myself in the near future. Having the images in the Wiki is a great solution IMO that we can link to from there. Feedback on the JSON-/repo-structure would be very helpful. |
I really like the work that is done in #3257. I think it will improve the data in OSM a lot. And I want to promote the list of example images to other apps as well.
For that reasons, it would be great to extract the information in a share project that can be used by other apps more easily. Similar to what NSI, ELI and id-tagging-schema does, but on a much smaller scale.
To give an idea of what that could look like IMO, I create this gist:
https://gist.github.com/tordans/c0ba3935575864235c932ee6f5a65510
Its based on the table from #3257 (comment).
Here are a few projects that could use this data:
A few thinks that we should think about
default
image? Eg. other gravel images in countries with mainly mountain roads?…The text was updated successfully, but these errors were encountered: