Giter VIP home page Giter VIP logo

Comments (7)

thomersch avatar thomersch commented on June 20, 2024

Although I like the idea of writing yaml instead of json, I don't think it is a particularly great idea to maintain two different systems.

from imposm3.

yohanboniface avatar yohanboniface commented on June 20, 2024

I don't know go details, but in general yaml can map to json like structure, so it should only be a matter of having two parsers that ends up to the same structure, no?

from imposm3.

thomersch avatar thomersch commented on June 20, 2024

It is indeed very easy to map yaml and json onto a struct in Go (yaml would need an additional dependency, but that's a rather minor problem). I just think that it might be a case of unnecessary over-complication for a tool that is supposed to do one thing right.

from imposm3.

yohanboniface avatar yohanboniface commented on June 20, 2024

ok ok, let's count my { and } so ;)

(Closing as there is no call for action, but debate is still possible.)

from imposm3.

olt avatar olt commented on June 20, 2024

Imposm 3 uses JSON because it is supported by Go's stdlib and was easy to integrate. JSON itself is horrible for a configuration format, since it doesn't support comments. I won't mind switching to YAML.

All valid JSON is also valid YAML, so a switch to YAML with the same mapping structure will still read "old" imposm mappings. Question is: does go-yaml support the same mapping?

from imposm3.

tds4u avatar tds4u commented on June 20, 2024

Hello,
I'm working on a conversion of the OSM CartoCSS style (with YAML). But I've some problems, maybe it's related to import error? Look at the image please.
imposm_error_roads
Info: Hannover / Bemerode (Germany)

A road should be a LINESTRING and not an area so maybe there is a problem regarding the geometry of many roads or with IMPOSM3?

from imposm3.

thomersch avatar thomersch commented on June 20, 2024

@tds4u I think you should open a new issue, because I don't see that your post is related to this thread.

from imposm3.

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.