-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw in relations #13
Comments
Well, it depends. The topic is more complex than it looks like.
|
Thanks, @rahra This works, but the functionality is difficult to manage. It generates a lot of triangles where you might expect circles or rounded rectangular shapes. I think the problem may be with the ordering or direction of ways. According to the manual: "The insertion of artificial ways only works properly if the ways have a specific direction." |
Yes, this may be the case. |
[EDIT 2023-03-15 formatted HTML and decreased image display sizes] There are two situations that seem common that would probably get things started. I'm happy to learn how to edit the OSM data or smrender to fix these and similar issues. This output comes from smrender's default rules except where I've noted. Hackensack River: The first image I've attached here shows that the river is only filled with blue to a certain point. It should continue upstream, northward in the image. Blue lines at the centerpoint of the river highlight where it goes, but the full width isn't being filled like it is on the left side of this image. My output (hackensack-river.txt) addresses a few errors, but none of the data errors it mentions appear to be part of the river. They are part of a wetland. Morris Canal Basin: You can see in one image that the basin doesn't get filled with blue. The blue you see is a boatyard. If you enable the following rule, you get what's pictured in the second image. An outline is drawn there of the basin.
A comment in the rules file says this will break other cat_polys. It does, clearly. What it doesn't do is fill the relation in a way I expect. I've tried addressing this relation with different tags, and I always end up with a similar result. It looks as if the relation is cat_poly'd into a shape that mirrors the outline of the area. Like it starts from Point 1, goes in order to point N, and then circles back to Point 1 again one pixel parallel to the line drawn in the first direction. In the OSM data, there are two ways that comprise the basin -- an outer that's most of the basin inland, and an outer that's also a coastline. It seems as if cat_poly never traces the coastline part. It doubles back on the inland part. My first output (morris-original.txt) gives no rendering errors. My second with that relation edit (morris-withrelationrendering.txt) mentions the ways 179058314 and 207411156 as possibly having the wrong direction. Those ways are part of the basin's relation. |
Hi! |
I'd like to draw in a primary waterway, like a river, and large land areas, like a county or state. Is drawing inside a relation possible?
In the basemap rules file, this does not appear to have any effect:
<relation>
<tag k='waterway' v=''/>
<tag k='_action_' v='draw:color=blue;bcolor=black'/>
</relation>
The text was updated successfully, but these errors were encountered: