Skip to content
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

Closed
erik-h11 opened this issue Nov 1, 2017 · 6 comments
Closed

Revive ANTIALIAS keyword in STYLE (for lines) #5508

erik-h11 opened this issue Nov 1, 2017 · 6 comments

Comments

@erik-h11
Copy link
Contributor

erik-h11 commented Nov 1, 2017

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.

@jratike80
Copy link

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.

@sdlime
Copy link
Member

sdlime commented Nov 1, 2017 via email

@erik-h11
Copy link
Contributor Author

erik-h11 commented Nov 1, 2017

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.

@jratike80
Copy link

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?

@erik-h11
Copy link
Contributor Author

erik-h11 commented Nov 1, 2017

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.

erik-h11 added a commit to erik-h11/mapserver that referenced this issue Nov 9, 2017
rouault pushed a commit to rouault/mapserver that referenced this issue Feb 3, 2021
jmckenna added a commit that referenced this issue Feb 3, 2021
Issue #5508 - Revived ANTIALIAS keyword in STYLE section
@geographika
Copy link
Member

Fixed with #6225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants