Opened 20 years ago
Closed 19 years ago
#777 closed defect (fixed)
set opacity of existing rasters through SLD
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | WMS Server | Version: | 4.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi, I am trying to use an SLD to influence the opacity of an existing raster but it's not working. I use the maptools binary from 14-06-04. The SLD I use: http://www.vz.geodan.nl:1112/rasteropacity.sld The URL I am trying: http://www.vz.geodan.nl:1112/cgi-bin/mapserv_43.exe?map=/ms4w/apps/general/map/geostreets8bit.map&layers=layer_5&request=GetMap&format=image/png&srs=EPSG:28992&bbox=100000,400000,200000,500000&width=750&height=750&version=1.1.1&sld=http://www.vz.geodan.nl:1112/rasteropacity.sld I both tried PNG and PNG24 output, in both cases the result is not influenced by the SLD.
Change History (7)
comment:2 by , 20 years ago
Bart, Could you do a couple of tests : use php mapscript to apply the sld and see the resulting layer. Here is a sample script : dl ("php_mapscript_43.dll"); $oMap = ms_newmapObj("c:/msapps/world_testdata/map/raster.map"); $oLayer = $oMap->getlayerbyname("landsat"); $oLayer->applysldurl("http://localhost/msapps/world_testdata/tests/sld_tests/sld_raster_ttt.xml"); $oMap->save("c:/msapps/world_testdata/tests/sld_tests/bug777.map"); I have tried your sld and the opacity is read properly and transofrmed into a Transparency parameter on the layer. I would like to know if the layer is not well built or it is another issue with transparency on your layer.
comment:3 by , 20 years ago
Hi Assefa, thanks for the quick answer. I tried your script, I get the following for my layer_2 in the output MAP file: LAYER DUMP TRUE MAXSCALE 25000 METADATA "WMS_SRS" "EPSG:28992 EPSG:4326" "WMS_ABSTRACT" "Geostreets Level 2" "WMS_TITLE" "Geostreets Level 2" END MINSCALE 12000 NAME "layer_2" SIZEUNITS PIXELS STATUS ON TILEINDEX "F:/Data/Geostreets/2/level2.shp" TILEITEM "location" TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END Do you need anymore info? Please let me know.
comment:5 by , 20 years ago
Changes in CVS were done on June 14. So not sure if the binaries include the support. I will check these binaries later on today. But for sure the latest binaries on maptools contain this support.
comment:6 by , 20 years ago
Bart, There are no 4.3 windows binaries on maptools dated on June 14 (latest are dated June 16 and June 25). Are your binaries from maptools ? If they are from the mapserver site and dated from June 14, the opacity changes is certainly not included. If that is the case, please updraed to newer version.
comment:7 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Closing the bug. If there is a problem with the functionnality please reopen.
Note:
See TracTickets
for help on using tickets.