[mapserver-users] using MINSIZE and MAXSIZE with ANCHORPOINT

Richard Greenwood richard.greenwood at gmail.com
Fri Sep 23 10:20:19 PDT 2016


It seems like my symbol's ANCHORPOINT is not being scaled when my style
definition uses MINSIZE, MAXSIZE and MAXSCALEDENOM.

Here's my symbol definition:

SYMBOL
  NAME "arrowv"
  TYPE vector
  ANCHORPOINT 0.5 1
  POINTS
    0 2
    1 0
    2 2
    -99 -99
    1 0
    1 3
  END
END

and my style definition:

    STYLE
      SYMBOL "arrowv"
      SIZE 40
      COLOR 0 0 255
      ANGLE [angle]
    END

Which produces what I want:

(​The red dot is the map x, y insertion point)
but when I add SYMBOLSCALEDENOM and change my symbol definition to:

    STYLE
      SYMBOL "arrowv"
      MINSIZE 15
      MAXSIZE 40
      COLOR 0 0 255
      MINWIDTH 1
      MAXWIDTH 1
      ANGLE [angle]
    END

I get:

The ANCHORPOINT is not scaled along with the symbol. A little hard to see
in these two, but the ANCHORPOINT is being used, just not scaled:

ANCHORPOINT 0 0

ANCHORPOINT 1 1

​
​Am I doing something wrong?

Thanks,
Rich

-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160923/a53a59b8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anchor1.png
Type: image/png
Size: 314 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160923/a53a59b8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: withoutSacle.png
Type: image/png
Size: 317 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160923/a53a59b8/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anchor0.png
Type: image/png
Size: 309 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160923/a53a59b8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: withSacle.png
Type: image/png
Size: 324 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160923/a53a59b8/attachment-0003.png>


More information about the mapserver-users mailing list