hholzgra / ocitysmap

Fork of ocitysmap repository at savannah.nongnu.org
Other
35 stars 12 forks source link

Rewrite stylelib/Umap.py to use jq for Umap json parsing #34

Closed hholzgra closed 1 year ago

hholzgra commented 2 years ago

The current parsing code is ugly, and there may be more problems like

https://github.com/hholzgra/maposmatic/issues/58

still hidden in it.

Rewriting the Umap json -> geojson conversion code to extract features using jq instead of raw python code should make things much more readable, and so maintainable.

claude1000 commented 2 years ago

thanks

hholzgra commented 1 year ago

I'm not really happy with

https://github.com/mwilliamson/jq.py

as you can compile the search expressions, but JSON must be passed in as string input, and so parsed every time again and again.

hholzgra commented 1 year ago

closing, see also #65