[mapserver-users] Abandoned railroad symbol
thomas bonfort
thomas.bonfort at gmail.com
Mon Sep 26 03:29:20 PDT 2011
Havard,
#3867 seems reasonable, we would just need to document that in the
migration guide for people who are using a symbol who's size is larger
than the gap they specified, as this will result in messed up
rendering.
#3879 is more involved, as it requires the addition of two mapfile
keywords. You might want to bring this up on the -dev list to see what
the reactions are w.r.t these keyword additions.
regards,
thomas
On Mon, Sep 26, 2011 at 12:09, Havard Tveite <havard.tveite at umb.no> wrote:
> Dear Bob,
>
> Mapserver does not allow sensible styling of dashed lines with for
> instance point symbols.
> To be able to do this, a new mechanism will have to be introduced
> (for instance INITIALGAP, as used in the SLD specification). This
> is what Mapserver ticket #3879 suggests.
> http://trac.osgeo.org/mapserver/ticket/3879
>
> Advanced styling of lines with point symbols is also hampered by the
> strange calculation of GAP in Mapserver, as reported in ticket #3867.
> GAP should, in my opinion, specify the centre to centre distance
> between the point symbols.
> http://trac.osgeo.org/mapserver/ticket/3867
>
> Håvard Tveite
>
> On 9/22/2011 6:14 PM, Bistrais, Bob wrote:
>>
>> Hmm, still not getting the spacing correct. The crossties seem to be at a
>> consistent interval, but the dashed centerline isn't spacing well- sometimes
>> I get ties centered on the line (which is whaat I want), and sometimes the
>> ties are at the end of a dash.
>>
>> -----Original Message-----
>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
>> Sent: Thursday, September 22, 2011 11:21 AM
>> To: Bistrais, Bob
>> Cc: mapserver-users at lists.osgeo.org
>> Subject: Re: [mapserver-users] Abandoned railroad symbol
>>
>> SYMBOL
>> NAME "tie"
>> TYPE TRUETYPE
>> FONT "path/to/arial.ttf"
>> CHARACTER "|"
>> END
>>
>>
>> CLASS
>> EXPRESSION ('[STATUS]' = '3')
>> # The crossties:
>> STYLE
>> COLOR 200 200 200
>> SIZE 4
>> SYMBOL "tie"
>> GAP -10
>> END
>> # The centerline:
>> STYLE
>> COLOR 200 200 200
>> WIDTH 1
>> PATTERN
>> 5 10
>> END
>> END
>>
>> END
>>
>> On Thu, Sep 22, 2011 at 17:15, Bistrais, Bob<Bob.Bistrais at maine.gov>
>> wrote:
>>>
>>> I've been playing around with the symbology but I'm not getting my
>>> spacing
>>> right. I'm trying to create a symbol for abandoned railroad track, looks
>>> like the standard RR symbol, a line with the crossties, but dashed. Here
>>> is
>>> my code. Problem is, although I get a dashed line and the crossties, the
>>> interval isn't correct, and I was wondering if anyone had advice on
>>> making
>>> it more consistent so the crossties are always on the dashed line:
>>>
>>>
>>>
>>> CLASS
>>>
>>> EXPRESSION ('[STATUS]' = '3')
>>>
>>> # The crossties:
>>>
>>> STYLE
>>>
>>> COLOR 200 200 200
>>>
>>> WIDTH 4
>>>
>>> LINECAP BUTT
>>>
>>> ANGLE 90
>>>
>>> PATTERN
>>>
>>> 1 10
>>>
>>> END
>>>
>>> END
>>>
>>> # The centerline:
>>>
>>> STYLE
>>>
>>> COLOR 200 200 200
>>>
>>> WIDTH 1
>>>
>>> PATTERN
>>>
>>> 5 10
>>>
>>> END
>>>
>>> END
>>>
>>>
>>>
>>> END
>>>
> _______________________________________________
> 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