[mapserver-users] Symbols for railroad rendering in svg
TMa Teng
TMa at edrnet.com
Mon Nov 21 04:35:24 PST 2016
Thanks Andy,
My 'tie' symbol is same as your 'railway', the actual problem is the track...
My original one is as follow:
SYMBOL
NAME "line_solid"
TYPE ellipse
POINTS 1 1
END
FILLED true
END
I changed it to what you suggested, and it works perfectly for SVG output.
Really appreciate your help.
Best regards,
Teng
-----Original Message-----
From: Andy Colson [mailto:andy at squeakycode.net]
Sent: Friday, November 18, 2016 8:53 PM
To: TMa Teng <TMa at edrnet.com>; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Symbols for railroad rendering in svg
Oh, also, my mapserver is:
MapServer version 7.0.2 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
On 11/18/2016 05:36 PM, TMa Teng wrote:
> Thanks for sharing your method.
>
> However that is still brush line for the railway symbol which is not supported when using SVG format, isn’t it? Could you verify if a wms getmap call which contains the railway layer and in the getmap request set the output format=SVG to see if that works at your side?
>
> Thanks again,
> Teng
>
> -----Original Message-----
> From: Andy Colson [mailto:andy at squeakycode.net]
> Sent: Friday, November 18, 2016 5:52 PM
> To: mapserver-users at lists.osgeo.org; TMa Teng <TMa at edrnet.com>
> Subject: Re: [mapserver-users] Symbols for railroad rendering in svg
>
> On 11/18/2016 2:22 PM, TMa Teng wrote:
>> Hi all,
>>
>> I am working on a project to export the wms to SVG format, it is the from the requirement of the features to be in vector format. And I am facing trouble to use the render engine to render the railroad symbol as a brush line.
>>
>> RailRoad Symbol I am using is as follow:
>>
>> CLASS
>> NAME "MD_Railroad"
>>
>> STYLE
>> SYMBOL "line_solid"
>> SIZE 2
>> COLOR 0 0 0
>> END
>> STYLE
>> SYMBOL "tie"
>> SIZE 6
>> COLOR 0 0 0
>> GAP -10
>> END
>> END
>>
>> It works as expect when the return image in raster format such as PNG, but when using SVG it shows error:
>>
>> "msDrawLineSymbol(): Renderer error. renderer does not support brushed lines"
>>
>> Does anyone have any suggestion about how to design a vector-enabled symbol for railways please? I am using MapServer 7.0, data is in SQL Server Spatial.
>>
>> Best regards,
>>
>> Teng
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
> Without seeing the "tie" symbol, its hard to say if mine is different.
> Here's how I draw mine:
>
> SYMBOL
> NAME "railway"
> TYPE truetype
> FONT "Vera"
> CHARACTER "|"
> END
>
> CLASS
> NAME 'Railroad'
> STYLE
> SYMBOL 0
> COLOR 0 0 0
> SIZE 1
> END
> STYLE
> SYMBOL 'railway'
> COLOR 0 0 0
> SIZE 7
> GAP -10
> END
> END
>
> -Andy
>
More information about the MapServer-users
mailing list