-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Revive ANTIALIAS keyword in STYLE (for lines) #5508
Comments
|
Please read this long mail thread from mapserver-users https://lists.osgeo.org/pipermail/mapserver-users/2017-October/080278.html . That is also the right place for starting a new discussion, not this issue tracker. |
|
I don’t think we can do it at the STYLE level, more likely at the OUTPUTFORMAT level.
…________________________________
From: erik-h11 <notifications@github.com>
Sent: Wednesday, November 1, 2017 9:12:01 AM
To: mapserver/mapserver
Cc: Subscribed
Subject: [mapserver/mapserver] Revive ANTIALIAS keyword in STYLE (for lines) (#5508)
The ANTIALIAS keyword seems to be silently ignored in the current version. We have a need for drawing aliased lines - with antialiased lines, the resulting colors (RGBA values) do not necessarily correspond to the values specified as COLOR, which prevents us from implementing an idea based on redrawing certain road segments with Javascript.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#5508>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABhm-8keI65JrRs8mA-7nwN3sytyByLtks5syHwxgaJpZM4QOQZc>.
|
|
Actually I was the one starting that mapserver-users thread. I managed to achieve my goal by modifying (mostly) mapfile.c and mapagg.cpp; I created this ticket because I wanted to create a Pull Request (but perhaps issues and PRs are not necessarily related). Having some problems with the PR because I branched off branch-7-0, and the instructions in the WorkingWithGit Wiki page mention 'master'; getting compile errors with 'master'. I think 'master' needs some updates; will try again later. |
|
Sorry, I did not remember that. At least the mail thread is now recorded as background information. Perhaps the setting it could be implemented as a new FORMATOPTION. I was pondering about the existing GAMMA option, does it have anything common with this? |
|
My solution was to use the ANTIALIAS keyword: the parser in the current code still recognizes it, but the loadStyle() method simply ignores it. I'm now setting a flag in styleObj if the symbol is MS_FALSE, then copy that flag to strokeStyleObj, and in agg2RenderLine (mapagg.cpp) I pick renderer_scanline_bin_solid if the flag is MS_FALSE. |
Issue #5508 - Revived ANTIALIAS keyword in STYLE section
|
Fixed with #6225 |
The ANTIALIAS keyword seems to be silently ignored in the current version. We have a need for drawing aliased lines - with antialiased lines, the resulting colors (RGBA values) do not necessarily correspond to the values specified as COLOR, which prevents us from implementing an idea based on redrawing certain road segments with Javascript.
The text was updated successfully, but these errors were encountered: