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:[email protected]] Sent: Thursday, September 22, 2011 11:21 AM To: Bistrais, Bob Cc: [email protected] 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<[email protected]> 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 [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
