Comments (10)
Sounds good, thanks for your work @msbarry 👍
from planetiler.
Haven't heard back, is this something you would like a contribution? Or is this something that wouldn't be that relevant to you?
from planetiler.
Hey sorry I just haven't had a chance to look into this. For B313 at least it looks like it does show up (because each of the ways in it also has a ref
tag), but only starting at z12:
The reason it doesn't show up at z11 and below is that openmaptiles sets a min length of 8km for transportation_name segments to appear at z11. The trunk portion of B13 is just over 9km so gets emitted, but planetiler translates that length limit to a min pixel size of the feature on a tile and that segment happens to cross a tile boundary
I can see two fixes here:
- Use a larger buffer for transportation_name tiles at z11 and below so the min length computation includes the full segment
- Then maybe to catch the case where a way is in a relation that has a ref but no network (and there's no ref on the way) we could add an option that breaks from openmaptiles compatibility and uses that ref on the transportation_name linestring
What do you think @boldtrn ?
from planetiler.
Use a larger buffer for transportation_name tiles at z11 and below so the min length computation includes the full segment
Actually we already do that... it turns out that the issue here is that some onramps/offramps to B313 are tagged with ref=B 313
(for example https://www.openstreetmap.org/way/845773628) and the line merging code stops merging at 3-way intersections and none of the line segments ends up exceeding the 8km min-lenth limit. I'm planning to refactor the line merging code at some point (#54) so it's more robust to these kinds of issues.
In the meantime you can run planetiler with --transportation-name-limit-merge
which groups onramps separately from main roads. When I run with that option, I can see B313 shield as low as z8
That option is disabled by default since it differs from openmaptiles, but if you find that the output is actually closer to openmaptiles with it enabled then we can enable it by default.
from planetiler.
Thanks @msbarry for the proposal. Are there any side-effects when using --transportation-name-limit-merge
? Is there anything I should look out for when using this parameter?
from planetiler.
Nope, it should be isolated to only affect transportation_name layer, and in general will make road labels show up a bit more frequently on the map at lower zooms. It should not be a huge difference though.
from planetiler.
Thanks @msbarry this parameter seems to indeed improve the rendering of highway signs. Compared to OMT there are still fewer highway signs (B10 and A8 are still missing).
Is there be something else that I could try? If a code change is required I can create a PR as well, but I might need a hint or two :).
from planetiler.
Are you sure they're not showing up in the underlying tile data and it's not a style rendering issue? When I look in tileserver-gl I see B10 and A8:
from planetiler.
Thanks for the hint, you are right, sorry for the troubles, they indeed appear in the data (I should have checked that).
Should we close this issue then?
from planetiler.
@boldtrn I think this is good to close for now? #298 tracks the long-term improvements to feature merging
from planetiler.
Related Issues (20)
- [BUG] Broken geometry of admin_level=4 boundary HOT 3
- [FEATURE] Configure zoom levels per layer HOT 3
- [BUG] download missing latest osm file HOT 1
- [BUG] Error when building planet tiles: "Protocol message contained an invalid tag (zero)" HOT 2
- Support Overture Map format HOT 18
- About the display layer of place name labels HOT 1
- Multiple areas support? HOT 2
- House number is generated for every primative with addr:housenumber key HOT 1
- [FEATURE] Merge with already existing tiles HOT 2
- Prefer name statements over Wikidata labels HOT 2
- [FEATURE] Log problematic geometry causing JTS exceptions HOT 22
- [FEATURE] Min polygon area for including center point
- [FEATURE] Expose OSM entity metadata in the process feature context HOT 2
- [FEATURE] Lua profile followups
- [BUG] US admin level 4 boundary lines appear incomplete HOT 3
- Tilejson attributes missing attributes added or removed during post-processing
- [BUG] tiles missing >= zoom 7 HOT 13
- [FEATURE] Log planet version being used HOT 2
- [BUG] Charging stations won't be exported HOT 4
- [FEATURE] Add arbitrary extra metadata using the Profile interface
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from planetiler.