[MapServer-users] Is there a way to make OPACITY depends of SCALE?

Sven Schroeter schroeter at netgis.de
Thu Mar 30 05:22:16 PDT 2023


Hi,

I think that would only be possible with several layers  in a GROUP at 
the moment...

Greetings Sven


Am 30.03.2023 um 11:53 schrieb Carlos Neves (LREC):
>
> Hi List,
>
> Is there a way to change OPACITY by scale? The goal is to show 
> Orthophotomaps under risk areas.
>
> LAYER # Rock Fall Risk Model
>     NAME         "rockfall"
>         COMPOSITE
>                 OPACITY 50
>         END
>     DATA         "geotiffs/risk_m.tiff" # GeoTiff RockFall Risk File
>     STATUS       default
>     TYPE         RASTER
>
>     METADATA
>        "wms_title" "rockfall"
>     END
>         TEMPLATE "rockfall_query.html" # Rockfall Query file
>                 CLASS
>                         NAME "RockFall Risk"
>                         EXPRESSION ([pixel] > 0 )
>                         #MAXSCALEDENOM 10000
>                         #MINSCALEDENOM 2000
>                         STYLE
>                                 DATARANGE 1 3
>                                 COLORRANGE 255 255 0 255 0 0
>                         END #STYLE
>                 END #Class
>
>
> END # Rock Fall layer ends here 
> ############################################################################
>
> risk map example:
>
> Best Regards,
>
> Carlos
>
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230330/09acac90/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GrShjLticBib5lkF.jpg
Type: image/jpeg
Size: 7112 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230330/09acac90/attachment.jpg>


More information about the MapServer-users mailing list