<div dir="ltr">done! I don't know if this is the best way to do that .. but ..<div><br></div><div>this is my layer config:</div><div><br></div><div>```</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">        PROJECTION
</span><br>          "init=epsg:4326"
<br>        END
<br>
<br>        METADATA
<br>          "wms_title" "RIO_DE_JANEIRO"
<br>          "wms_srs" "EPSG:4326 EPSG:3857"
<br>          "wms_include_items" "all"
<br>        END
<br>
<br>        COMPOSITE
<br>            OPACITY 70
<br>        END # COMPOSITE
<br>
<br>        # PROCESSING "KERNELDENSITY_NORMALIZATION=255"
<br>        # PROCESSING "RANGE_COLORSPACE=HSL"
<br>        CLASSITEM "[pixel]"
<br>
<br>        CLASS
<br>          NAME "class_hotcolors"
<br>          EXPRESSION ([pixel] >= 1)  <br>
<br>          STYLE
<br>             RANGEITEM "style_hotcolors"
<br>             COLORRANGE  1 0 0  255 0 0  <br>             DATARANGE 1 8549
<br>          END # STYLE
<br>
<br>        END # CLASS
<br>
<br>        CLASS
<br>          NAME "class_background"
<br>          EXPRESSION ([pixel] == 0)
<br>
<br>          STYLE
<br>             RANGEITEM "style_background"
<br>             COLORRANGE  0 0 0  0 0 0
<br>             DATARANGE 0 0
<br>          END # STYLE
<br>        END # CLASS
<br>    END
<br>          <br></span></div><div><span style="font-family:monospace">```</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">My best regards,</span></div><div><span style="font-family:monospace">Ivan</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-07 15:56 GMT-04:00 Ivan Ogasawara <span dir="ltr"><<a href="mailto:ivan.ogasawara@gmail.com" target="_blank">ivan.ogasawara@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sorry .. actually is OFFSITE<div><br></div><div><dt style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px">OFFSITE [r] [g] [b] | [hexadecimal string]</dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;line-height:1.5em;color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px"><p class="m_7021902203367010856gmail-first" style="line-height:1.5em;margin-top:0px">Sets the color index to treat as transparent for raster layers.</p><ul class="m_7021902203367010856gmail-last" style="margin-bottom:10px"><li style="line-height:1.5em"><p class="m_7021902203367010856gmail-first" style="line-height:1.5em;margin-top:0px"><cite>r</cite>, <cite>g</cite> and <cite>b</cite> shall be integers [0..255]. To specify black pixels, the following is used:</p><blockquote><div class="m_7021902203367010856gmail-highlight-mapfile"><div class="m_7021902203367010856gmail-highlight"><pre style="overflow:auto;padding:10px;color:rgb(34,34,34);line-height:1.2em;border:1px solid rgb(198,201,203);font-size:1.2em;margin-top:1.5em;margin-bottom:1.5em"><span class="m_7021902203367010856gmail-k" style="color:rgb(0,112,32);font-weight:bold">OFFSITE</span> <span class="m_7021902203367010856gmail-mi" style="color:rgb(32,128,80)">0</span> <span class="m_7021902203367010856gmail-mi" style="color:rgb(32,128,80)">0</span> <span class="m_7021902203367010856gmail-mi" style="color:rgb(32,128,80)">0</span></pre></div></div></blockquote></li></ul></dd></div><div>As in the mapfile sent.</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-12-07 15:52 GMT-04:00 Ivan Ogasawara <span dir="ltr"><<a href="mailto:ivan.ogasawara@gmail.com" target="_blank">ivan.ogasawara@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I guess I misunderstood the offset parameter (actually before I added the colorrange parameter, offset was disabled).<div><br></div><div>but after I've added the colorrange parameter, the background is not transparent anymore ...</div></div><div class="m_7021902203367010856HOEnZb"><div class="m_7021902203367010856h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-12-07 15:41 GMT-04:00 Ivan Ogasawara <span dir="ltr"><<a href="mailto:ivan.ogasawara@gmail.com" target="_blank">ivan.ogasawara@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">Hi Jukka, <br></span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">these are my map files, raster file and the image output.</span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">my best,</span></font></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">Ivan</span></font></pre></div><div class="m_7021902203367010856m_-7022151579466420951HOEnZb"><div class="m_7021902203367010856m_-7022151579466420951h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-12-07 2:36 GMT-04:00 Rahkonen Jukka (MML) <span dir="ltr"><<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslai<wbr>tos.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div>
<div style="font-family:Calibri,sans-serif;font-size:11pt">Hi,<br>
<br>
It is impossible to help you with so little details. Show us a corresponding part of your mapfile and a small sample of data that can be user for re-producing the error would be appreciated.<br>
<br>
-Jukka Rahkonen-</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Lähettäjä:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:ivan.ogasawara@gmail.com" target="_blank">Ivan Ogasawara</a></span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Lähetetty:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt">‎7.‎12.‎2017 4:28</span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Vastaanottaja:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.or<wbr>g</a></span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Aihe:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt">[mapserver-users] OFFSET and RAGECOLOR</span><br>
<br>
</div><div><div class="m_7021902203367010856m_-7022151579466420951m_-6178886148062819271h5">
<div>
<div dir="ltr">
<div><span style="color:rgb(0,0,0);font-family:monospace">Dear all,</span><br>
</div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br>
</span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">when I use style colorrange the offset directive doesn't work.</span></span></div>
<span style="font-family:monospace"><span style="color:rgb(0,0,0)">
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br>
</span></span></div>
<div>my mapserver install configurations is:</div>
<div><br>
</div>
<div>```</div>
</span></span><span style="font-family:monospace">MapServer version 7.0.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUP<br>
PORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUP<br>
PORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
</span>
<div><span style="font-family:monospace">```</span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">any idea to resolve this problem?</span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">my best regards,</span></div>
<div><span style="font-family:monospace">Ivan</span></div>
</div>
</div>
</div></div></div>

</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>