-
Notifications
You must be signed in to change notification settings - Fork 823
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
Dummy geometry for scrub pattern compatibility #2748
Conversation
Wrong screenshot, sorry. Substituted with the good one. |
I believe we should go with 256 px for all the patterns now (instead of 512 px). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has a bit more space but I don't feel this is a problem.
ab4ffe2
to
d9d92cc
Compare
Looks good to me. @imagico are there technical reasons why we should hold this off? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what i can add here.
- this obviously fixes the periodicity problem.
- this also switches from a relaxed random pattern to a regular snub square grid - a choice which has not been discussed so far.
- it obviously does not solve SVG patterns in landcover-area-symbols render inconsistently in different metatiles #2750.
What do you suggest to do with it? Basic options would be to:
Probably the same decision list applies to #2760 and other SVG patterns as well. |
The description at scrub.md was about a snub square pattern yet before this PR.
During developping this PR, I’ve tried to generate with the
instructions at scrub.md the very same pattern again, but this wasn’t
possible. The result of jsdotpattern (using the instrunctions from
scrub.md) was quite different from the previous pattern. Maybe the
original description at scrub.md was not up to date?
Anyway, I’ve played around with the other settings then – until I got
something more or less similar to the previeous pattern.
2017-08-23 14:48 GMT, kocio-pl <[email protected]>:
… What do you suggest to do with it? Basic options would be to:
1. Leave the current SVG pattern as it is.
2. Revert to PNG version.
3. Merge this SVG version
a) as it is
b) tune it more (how?)
Probably the same decision list applies to #2760 and other SVG patterns as
well.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#2748 (comment)
--
Lukas Sommer
|
I would normally suggest to discuss and decide on the matter of relaxed random patterns and regular patterns in general before making changes along these lines - but given the experience with discussing general design principles and guidelines in #2462 i am not sure if this is possible. In any case someone should make a conscious decision about this and i am not sure if @sommerluk did. And yes, until #2750 is solved i would suggest to stick to PNG patterns for anything with transparency or partial pixel coverage. |
Well, as I said, scrub.md had documented this as snub pattern yet before this PR, so this was not a conscious decision. If desired, I could try to create another pattern that is randomized. |
I have reconstructed more or less the original command sequence based on the description by @meased (see #2395): This cannot be directly translated to 256 pixel size because the relaxation dynamics are different then. You can still generate a relaxed random pattern at this size and density but it would not be very good - see also #937 (comment). |
I'm more optimistic with that, because the scope would be much smaller. |
@sommerluk The problem with patterns looks quite complex (involving subtle Mapnik bugs and metatile issues), so the question is what do you plan to do with this code? For me the pattern is quite irregular (as needed for natural features) and works with 256px. Converting it to PNG would be safer, but I'm not sure if such precautions are really needed in this case. |
I would propose doing things in this order:
I could take a look at steps 2, 3 and 4, but I would like to wait until there is a decision about step 1. |
It doesn't look like we have any pattern related decisions coming any time soon and I don't have an opinion what to do with them, so I will leave it to you. |
The easiest solution for now: The pattern as reconstructed by @imagico just converted to PNG, with documentation. (And also a minor documentation fix for leaftype.) There are currently more patterns > 256 px anyway. If later we decide to switch to patterns ≤ 256 px, we have documentation available about the pattern generation for scrub. |
I think that leaftype documentation fix doesn't belong here, so please open another PR for it. |
Now without documentation fix. |
If you feel it's OK, you can merge it yourself now in my opinion, since enough time has passed and nobody else is ready to do that (including me). |
There are three merge options (Create…, Squash…, Rebase…). Which one should I use preferred? |
You don't have to even use pull down menu, just click "Merge pull request" button in standard cases. |
The scrub pattern crosses the border horizontally, but not vertically. This PR passes the existing scrub pattern through the newest version of the sanitizer of jsdotpattern, so it gets a dummy geometry added (just to make sure that we work around Mapnik limitations)…