Giter Site home page Giter Site logo

Comments (14)

jgpacker avatar jgpacker commented on June 10, 2024

In my opinion, this kind of fix shouldn't be recommended at all.

The wiki page for the key wikipedia=* itself recommends adding secondary wikipedia links in some cases, and this recommendation is there for a long time.

I believe this shouldn't be seen as some kind of error.
On the other hand, I don't think there is any case where more than 2 or 3 wikipedia:xy=* variants could be justified.

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

This checking is justified. But you're right, extra wikipedia:xy tag can be useless, but it can be checked on another analysis. See #18

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

I just checked it. When there is multiple "wikipedia:LANG" it propose an alternative fix for each language. So, it's right for me.

from osmose-backend.

naoliv avatar naoliv commented on June 10, 2024

Well, somebody automatically fixed (but not correctly in all cases) those issues in Brazil, but what we had was an object with only wikipedia:en=X and wikipedia:pt=X (ie, the object didn't have a primary wikipedia=LANG:X tag)

osmose was suggesting to use wikipedia=en:X instead the proper wikipedia=pt:X for Brazil.

The primary wikipedia key should always be pt in Brazil and not en like osmose was suggesting.

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

I no locate an issue like you describe.
But in the code it produce 2 alternates solutions. I just check it.

from osmose-backend.

naoliv avatar naoliv commented on June 10, 2024

I will create one object like this in OSM and then I will show you in 1 or 2 days :-)

from osmose-backend.

naoliv avatar naoliv commented on June 10, 2024

Well, actually it wasn't necessary to create an object...
Using this example: http://www.openstreetmap.org/node/34582421

See that we have a lot of wikipedia=LANG:X but not a primary wikipedia:LANG=X

osmose suggests this:

bla

See that it's suggesting to use wikipedia=en:Sugarloaf instead wikipedia=pt:Complexo_do_Pão_de_Açúcar

In Brazil it should always use/suggest wikipedia:pt when available, instead wikipedia:en

I hope it's clearer now :-)

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

So you're right. There is something wrong.

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

There are multiple errors, each with one fix, in place of one error with multiple fixes.

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

commit 3f10546 (HEAD, master)
Fix 'Missing primary Wikipedia tag' with multiple secondary tags

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

Done
http://osmose.openstreetmap.fr/map/#zoom=18&lat=-22.949779&lon=-43.156288&layer=Mapnik&overlays=FFFFFFFFFFFFFFFFFFFT&item=xxxx&level=1%2C2%2C3&tags=&fixable=

from osmose-backend.

naoliv avatar naoliv commented on June 10, 2024

I fear one thing here: people will use the first suggestion to fix the key (and make en the primary language for wikipedia).
Isn't it possible to suggest only one fix (pt for Brazil) or at least make pt the first option?

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

Sort fix in TagFix_Wikipedia, country language first, github#14
ad56668

from osmose-backend.

frodrigo avatar frodrigo commented on June 10, 2024

Checked. It works.

from osmose-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.