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
label style offset, geomtransform labelpoly, symbolscaledenom #4015
Comments
Author: tbonfort doc should be updated to indicate that offset is scaled in the same way as size, width, etc... |
Author: havatv The problem here seems to be the use of MAXSIZE and MINSIZE for the LABEL (if MINSIZE and MAXSIZE is not used, everything is OK). Would it be possible to take LABEL MAXSIZE and MINSIZE into consideration when computing the OFFSET of a LABELPOLY (when symbol scaling is in effect)? If not, I don't think it will be possible to use a backgroundshadow for labels in a layer with SYMBOLSCALEDENOM specified, and limits to label scaling (LABEL MINSIZE and MAXSIZE) in effect. |
Author: havatv
Here is a mapfile that demonstrates the problem. Run it with shp2img (FONTSET will have to reflect your system font path). At the bottom is the label resulting from the situation 1) above. At the top is the label resulting from the situation 3) above. In the middle is the label resulting from the situation 2) above. As you can see, for the label in the middle, the shadow offset is scaled without respecting the LABEL MINSIZE / MAXSIZE.
|
attachment http://trac.osgeo.org/mapserver/attachment/ticket/4015/labelshadow-offset.png :
|
@tbonfort, I had forgotten about this issue, but today I did a test with Mapserver 7.0.1, and found that there are still problems with the combination LABEL-> geomtransform 'labelpoly', LAYER-> symbolscaledenom and LABEL-> maxsize. Map file for the example (only FONTSET and the WEB block should need modification):
|
@tbonfort, the issue persists in 7.0.6 (I was reminded by a discussion on mapserver-dev@lists.osgeo.org ("drop shadow for labels") 21 May). |
Reporter: havatv
Date: 2011/09/10 - 10:03
Trac URL: http://trac.osgeo.org/mapserver/ticket/4015
I have discovered that LABEL STYLE OFFSET, at least when used with GEOMTRANSFORM 'labelpoly' does not work as expected when SYMBOLSCALEDENOM is specified for the layer. If someone is interested in testing, use shp2img with the following map file (FONTSET will probably have to be changed). If SYMBOLSCALEDENOM is commented out, behaviour is as expected. When SYMBOLSCALEDENOM is in effect, the offset will be scaled. Documentation says that OFFSET is given in pixels.
I have tested with 6.0 and trunk.
See the attached files.
The text was updated successfully, but these errors were encountered: