[mapserver-users] WMS and transparent

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Wed Mar 25 11:02:16 EDT 2009


Hi,

Or perhaps OFFSITE will have difficulties because jpeg compression makes
totally black to almost black.  If it works the result could still be
only partially transparent image with some non-transparent pixels here
and there.

-Jukka Rahkonen-


Bart wrote: 
 
> Yeah maybe OFFSITE can do this for you, give it a try, it 
> works for normal rasters so why not for a WMS client layer 
> (haven't tried though).
> 
> Best regards,
> Bart
> 
> > Thanks for the reply.  I was hoping maybe MapServer could 
> consume that 
> > jpeg and set the white color to transparent, then mapserver would 
> > output a PNG that has transparency to the web client.  Does the 
> > offsite parameter do this by chance or is there another trick that 
> > could be used?
> >
> > -----Original Message-----
> > From: bartvde at osgis.nl [mailto:bartvde at osgis.nl]
> > Sent: Wednesday, March 25, 2009 9:47 AM
> > To: Fischer, Brian
> > Cc: mapserver-users at lists.osgeo.org
> > Subject: Re: [mapserver-users] WMS and transparent
> >
> > Hi,
> >
> > jpegs can not be transparent. Only if you switch to another image 
> > format like image/png.
> >
> > Best regards,
> > Bart
> >
> >>
> >>
> >> I am trying to consume this  WMS service with MapServer 5.0.2 as a 
> >> client and would like to make the background transparent 
> instead of 
> >> white.  Is this possible mapserver?  I tried the  "wms_transparent"
> >> "true", but that didn't seem to work.  Thanks for any suggestions.
> >>
> >>
> >>
> >>   NAME '2003orthos'
> >>
> >>   STATUS ON
> >>
> >>   EXTENT 366751.468 5034450.028 882880.091 5434570.553
> >>
> >>   UNITS Meters
> >>
> >>    SIZE  600 400
> >>
> >>    FONTSET '../fonts/fontset.list'
> >>
> >>    SYMBOLSET '../symbols/symbol.sym'
> >>
> >>   IMAGETYPE PNG24
> >>
> >>   TRANSPARENT TRUE
> >>
> >>
> >>
> >>                 WEB
> >>
> >>                                 IMAGEURL "E:\ms4w\tmp\ms_tmp"
> >>
> >>                                 IMAGEPATH "E:\ms4w\tmp\ms_tmp"
> >>
> >>                 END
> >>
> >>
> >>
> >>
> >>
> >>   LAYER
> >>
> >>     NAME         ND03
> >>
> >>     TYPE         RASTER
> >>
> >>     OFFSITE      0 0 0
> >>
> >>     STATUS       DEFAULT
> >>
> >>     CONNECTIONTYPE WMS
> >>
> >>     CONNECTION
> >>
> > 
> "http://web.apps.state.nd.us/wmsconnector/com.esri.wms.Esrimap/NDWMS_a
> > er
> >> ialimages?"
> >>
> >>
> >>
> >>     #MINSCALE      1000 # only display down to this scale
> >>
> >>     #MAXSCALE     24000
> >>
> >>
> >>
> >>     METADATA
> >>
> >>       "wms_srs" "EPSG:26914"
> >>
> >>       "wms_name" "ND03"
> >>
> >>       "wms_server_version" "1.1.1"
> >>
> >>       "wms_format" "image/jpeg"
> >>
> >>       "wms_styles" ""
> >>
> >>       "wms_exceptions" "application/vnd.ogc.se_inimage"
> >>
> >>     END
> >>
> >>
> >>
> >>   END
> >>
> >> END
> >>
> >>
> >>
> >>
> >>
> >> End #Map
> >>
> >>
> >>
> >> Thanks,
> >>
> >> Brian
> >>
> >> _______________________________________________
> >> mapserver-users mailing list
> >> mapserver-users at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >>
> >
> >
> >
> 
> 
> _______________________________________________
> 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