[mapserver-users] MapServer Symbol Conversion from Polyline Points

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Dec 29 14:10:56 PST 2008


I believe the size is computed from the max x, y coordinates and 0,0. That size (and the Style size) is then used
to offset the symbol so it is centered accordingly. Typically I always develop vector symbols on a unit square (0 
to 1) so that things work predictably. As suggested later in this thread a TTF is a nice alternative for anything
complex. I use 'FontCreator' and it works quite nicely.

Steve

>>> On 12/29/2008 at 6:58 AM, in message <DEE8AF99FAF841C29C89AB2A4BFF4F3A at DELL>,
"Donald Kerr" <donald.kerr at dkerr.co.uk> wrote:
> Thomas,
> 
> Thanks for your prompt reply.
> 
>>> If I take just part of the above then it still doesn't work:
>>>
>>> SYMBOL
>>>        NAME 'boulderGeometry'
>>>        TYPE VECTOR
>>>        FILLED FALSE
>>>        POINTS
>>>                -0.154 0.236
>>>                -0.111 0.365
>>>                -0.116 0.501
>>>                -0.165 0.616
>>>                -0.170 0.627
>>>        END # POINTS
>>> END # SYMBOL
> 
>> There's a limitation with the vector code that expects  all 
>> values to be positive when computing the symbol size. I'm 
>> hoping this will be fixed in 5.4 / 6.0
> 
> Is that the reason why the above appears not to work i.e. the size issue? I
> will try changing everything to a positive number to see if that works.
> 
> As a side issue, do the positive/negative numbers have a bearing on the
> anchor point of the symbol or is that always in the centre of the symbol?
> 
> Many thanks.
> 
> Regards,
> 
> Donald
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list