Hi There,

Oscar Gomez wrote:
Hi all!
I'm having some trouble trying to use SLDs with MapServer. I'm requesting maps from GoogleEarth using a NetworkLink object and a custom KML-WMS-KML parser. If I apply "simple" symbology through a custom SLD, it works, and the background of the map created by MapServer is transparent, so only the "vectors" are shown in GoogleEarth. But if I use an SLD symbology using an external picture (<ExternalGraphic> tag in SLD), then the background of the map created by MapServer is not transparent anymore. Then Google Earth shows a map with white background.

ExternalGrapphic ends up being transformed into something like this in the map file:

 - inline symbol:

 SYMBOL
NAME "http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif";
    TYPE PIXMAP
    IMAGE "f:/msapps/world_testdata/map/484599a6_1a28_1.gif"
    GAP -20
    TRANSPARENT 0
  END

 and a class

 CLASS
      NAME "Unknown"
      STYLE
        ANGLE 360
        COLOR 255 0 0
        OPACITY 100
        SIZE 10
SYMBOL "http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif";
      END


I am not sure I see the reason why this would affect the background transparency.

If possible can you add the symbol manually in the mapfile and see if you get the same transparency problem.

 Do we have access to the external symbol you are using?

I am using the following external symbol in my test (http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif) and I have tried used both agg and gd as a rendering settings and I did not see any effects on the background transparency. Note that I am using Mapserver from svn.


Best Regards,

Has anyone experienced the same? Can this be solved?
Thanks in advance, Oscar


------------------------------------------------------------------------

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users


--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to