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

RFC 55 implementation: Improve control of output resolution #2948

Closed
mapserver-bot opened this issue Apr 3, 2012 · 10 comments
Closed

RFC 55 implementation: Improve control of output resolution #2948

mapserver-bot opened this issue Apr 3, 2012 · 10 comments
Assignees
Milestone

Comments

@mapserver-bot
Copy link

Reporter: aboudreault
Date: 2009/03/19 - 19:56
Trac URL: http://trac.osgeo.org/mapserver/ticket/2948
Ticket to track changes with regards to RFC 55, output resolution:

http://mapserver.org/development/rfc/ms-rfc-55.html

@mapserver-bot
Copy link
Author

Author: aboudreault
Date: 2009/03/20 - 15:15
A good part of this task have been done. Here's some notes i've took during the implementation:

  • mapdraw.c
    • msDrawLabel()
      1. Added scaling for these label values: backgroundshadowsizex, backgroundshadowsizey, offsetx, offsety (label)
    • msDrawLabelCache()
      1. Added scaling for these label values: backgroundshadowsizex, backgroundshadowsizey, offsetx, offsety, buffer, mindistance (label)
    • msDrawShape()
      1. Scale this value: minfeaturesize (label)
    • msDrawVectorLayer()
      1. Scale this value: outlinewidth (line)
  • mapgd.c
    [[BR]]''IMP'': Most of outlines cannot be scaled with the current version of GD.
    • msDrawTextGD()
      1. Scale these values : shadowsizex, shadowsizey (label)
    • msDrawTextLineGD()
      1. Scale these values : shadowsizex, shadowsizey (label)
    • msDrawLineSymbolGD() :
      1. Added pattern scaling. (line)
      2. pixmap symbols don't support scaling (line)
    • msDrawShadeSymbolGD() :
      1. ''Added gap scaling for truetype symbols (line)'' '''TO RECHECK'''
      2. No gap support for ellipse, vector symbols
      3. No pattern support pattern for hatch symbols
  • mapagg.cpp
    • msDrawTextAGG()
      1. Scale these values : outlinewidth, shadowsizex, shadowsizey (label)
    • msDrawTextLineAGG()
    • Scale these values : outlinewidth, shadowsizex, shadowsizey (label)
    • msDrawLineSymbolAGG()
      1. Added pattern scaling (line)
      2. '''filled''' vector symbols are not scaled (line)
      3. vector symbols don't support pattern (line)
      4. pixmap symbols don't support scaling (line)
    • msDrawShadeSymbolAGG()
      1. Added pattern scaling
      2. pixmap symbols don't support scaling
    • msDrawMarkerSymbolAGG()
      1. Added offset scaling (Marker)
  • maplabel.c
    • msTestLabelCacheCollisions()
      1. Added mindistance parameter
    • msImageTruetypePolyline()
      1. label.size scaling removed: this size is already scale in msDrawTextGD().
  • mapimagemap.c
    • msDrawLineSymboldIM()
      1. Added pattern scaling
    • msDrawMarkerSymbolIM()
      1. Added offset scaling
  • mappdf.c
    [[BR]]''IMP: not fully supported''
    no backgroundcolor / backgroundshadow ...
    • drawDashedPolylinePDF() : added pattern scaling
    • msDrawMarkerSymbolPDF() : doesn't not take offset in account
  • mapsvg.c
    [[BR]]''IMP: not fully supported''
    no backgroundcolor backgroundshadow
    • msDrawLineSymbolSVG() : added pattern scaling, NO gap
    • msDrawShadeSymbolSVG() : added pattern scaling
  • mapswf.c
    [[BR]]''IMP: not fully supported''
    no backgroundcolor / backgroundshadow...
    • draw_textSWF: no outlinewidth support
    • msDrawLineSWF(): not implemented... no lines with symbols support, no gap, pattern etc..

@mapserver-bot
Copy link
Author

Author: aboudreault
Date: 2009/03/28 - 17:29
Committed in SVN trunk in 22a8181 (r8843).

Assefa, may you run your series of tests with the trunk pls? Thanks

@mapserver-bot
Copy link
Author

Author: cnieman
Date: 2009/04/30 - 22:20
I'm not sure if Assefa has taken a look at the code you committed yet, but we just realized that the maximum width of symbols is set to 32 unless otherwise specified. So MAXSCALE for each style needs to be scaled (or changed in some other way).

@mapserver-bot
Copy link
Author

Author: cnieman
Date: 2009/04/30 - 22:20
oops, sorry that should be MAXWIDTH

@mapserver-bot
Copy link
Author

Author: aboudreault
Date: 2009/10/05 - 22:52
So, that those 4 values should be scaled too: style->maxwidth, style->minwidth, style->minsize, style->maxsize. cnieman, perhaps you have a small test case to attach in the ticket ? It would allow me to quickly test my changes.

Assefa, I think you have a few applications that use different output resolution ? Am I right? Maybe it would be a good idea to test them with a MS 5.6 beta before the official release ?

@mapserver-bot
Copy link
Author

Author: dmorissette
Date: 2009/10/05 - 23:09
Since this has been committed in the code a while ago, and was part of the first few 5.6 betas, would it not be better close this ticket and open new ones if there are issues?

@mapserver-bot
Copy link
Author

Author: assefa
Date: 2009/10/06 - 01:05
Alan,
we still use 5.4 for production. That's why I did not do a full test on this feature yet. Hopefully Christy has a test case showing the need to scale MAX/MIN-WIDTH/SIZE.

Daniel,
Opening new tickets is ok with me. If the fixes are easy I would suggest keeping them here for easy reference.

@mapserver-bot
Copy link
Author

Author: cnieman
Date: 2009/10/06 - 14:11
I've attached an example with three line styles. When we scaled these styles for print [(width/resolution)_dpi] which was, for example, in the first class of the attached sample, [(16/96)_300 = 50] and [(10/96)*300 = 31.25] we found that the ratio between the two line widths was not consistent with what was displayed with no scaling; the line that should have had a width of 50 was only getting drawn with a width of 32 because of the default MAXWIDTH value. When MAXWIDTH was set using the same scaling calculation, the lines were drawn with the correct ratio between the widths.

@mapserver-bot
Copy link
Author

Author: aboudreault
Date: 2009/10/06 - 14:57
This implementation is done. Let's track issues in new tickets.

Style MAXWIDTH issue: http://trac.osgeo.org/mapserver/ticket/3153

@mapserver-bot
Copy link
Author

@ghost ghost assigned aboudreault Apr 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants