[mapserver-users] UMN and SVG output

Till Adams adams at terrestris.de
Fri May 15 01:51:29 PDT 2009


Daniel,

firstr of all many thanks for your reply, we already did that:
The upper is the SVG code comes from the mapserver, where the SVG 
appears in black, the lower one is the correct one. The differene 
between the files is the style definition ' style="fill: none;" ' which 
is missing in the upper SVG. Both mapservers are 4.10, are compiled with 
the flag "--with-svg" and use exactly the same mapfile.... could it be 
that there are any differences in the linked GD library or the 
uinterface beteen UMN and GD ...?

Regards - Till

<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" width="1162" height="671" 
xmlns="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink">

<!-- START LAYER test -->
<path stroke="#ff0000" stroke-width="10" d="M 578 339 L 306 339 L 245 
671 L 578 339 M 713 339 L 442 339 L 381 671 L 713 339 z"/>
</svg>



<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" width="1162" height="671" 
xmlns="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink">

<!-- START LAYER test -->
<path stroke="#ff0000" stroke-width="10" style="fill: none;" d="M 578 
339 L 306 339 L 245 671 L 578 339 M 781 339 L 510 339 L 449 671 L 781 
339 z"/>
</svg>


> Till Adams wrote:
>> Dear list,
>>
>> we have a problem with (old but working) Mapserver 4.10 version and 
>> svg output transparency:
>>
>> On one system (solaris 10) everything works fine.
>> On the other system (solaris 10) with exactly the same mapfile, the 
>> originally as transparent defined polygons
>> (COLOR -1 -1 -1) come out in black.
>>
>> I guess that GD library is responsible for creating the SVG. Did 
>> anybody had this problem before or does anybody have an idea which 
>> component may cause this error?
>>
>
> Till,
>
> Did you really mean SVG? SVG is a vector format which is rendered by 
> the browser, are you using the same browser to access both servers?
>
> I'd suggest you start by comparing the SVG output from both to try to 
> figure the difference (it's XML-ish) between the output from your two 
> servers, and then we can go from there.
>
> Daniel


-- 
----------------------------------------------------------
terrestris GmbH & Co. KG
Irmintrudisstrasse 17
53111 Bonn
Germany

Till Adams
Geschäftsführung

Tel: +49 (0)228 / 962 899-52
Fax: +49 (0)228 / 962 899-57
adams at terrestris.de http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
---------------------------------------------------------

Komplementärin:

terrestris Verwaltungs GmbH

vertreten durch:
Hinrich Paulsen, Till Adams




More information about the MapServer-users mailing list