Giter Club home page Giter Club logo

Comments (7)

giggls avatar giggls commented on June 25, 2024

I never used the views in contrib myself thus it might well be buggy. I would have recommended using my scheme which has been designed to be compatible to upstream style.

This said I need to note here that I am currently working on replacing this style with my new l10n approach thus it will certainly get replaced in a few weeks time.

from openstreetmap-carto-de.

alexandervlpl avatar alexandervlpl commented on June 25, 2024

Noted, I'll watch for the l10n update, thanks!

I was simply following INSTALL.md, which says to use contrib. I see that the SQL in views_osmde requires an hstore planet import, which I do not have:

ERROR: relation "planet_osm_hstore_line" does not exist

Both sets of views add a name_hrb column, so my guess is the generated style just isn't using the views somehow. Can anyone recommend a way to make this work without hacking the style?

from openstreetmap-carto-de.

giggls avatar giggls commented on June 25, 2024

You need to follow https://github.com/giggls/openstreetmap-carto-de/blob/master/INSTALL-de.md not INSTALL.md
The latter is a verbatim copy of upstream.

To cite from the README:
"For Installation please read INSTALL-de.md first for differences of openstreetmap-carto-de."

Frankly I have no Idea why your view does not have the name_hrb column. Are you sure that you are using the views for rendering and not the upstream tables?

There is no style hacking required.

from openstreetmap-carto-de.

giggls avatar giggls commented on June 25, 2024

I just had a look at https://github.com/giggls/openstreetmap-carto-de/blob/master/contrib/use-upstream-database/README.md in contrib directory.

"All references to tablenames in project.mml need to be adapted to reference the views instead of the real tables."

Did you do this?

Sven

from openstreetmap-carto-de.

giggls avatar giggls commented on June 25, 2024

" You will then need to compile this project-mod.mml with carto, not the original project.mml"

from openstreetmap-carto-de.

alexandervlpl avatar alexandervlpl commented on June 25, 2024

I am referring to INSTALL-de.md, which says:

Use the views provided in the contrib directory instead of the ones from above if you prefer this database layout.

I thought contrib/use-upstream-database/replace-tablenames.sh does the replacing, it's called by make DBSCHEME=upstream which creates and compiles project-mod.mml. Somehow the names are still wrong. If I change them in the inital project.mml, I end up with planet_osm_line_de_de.

I did manage to get farther by correcting the final XML. I'll try to find the issue in the scripting if I can get rendering to work.

from openstreetmap-carto-de.

giggls avatar giggls commented on June 25, 2024

It does. But you need to also compile the resulting mml file using carto then.

Please keep in mind that you are following a contrib path of a project which is going to be deprecated in favour of a new approach in a few weeks time anyway.

from openstreetmap-carto-de.

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.