[mapserver-users] OFFSET and RAGECOLOR
Ivan Ogasawara
ivan.ogasawara at gmail.com
Thu Dec 7 12:18:32 PST 2017
done! I don't know if this is the best way to do that .. but ..
this is my layer config:
```
PROJECTION
"init=epsg:4326"
END
METADATA
"wms_title" "RIO_DE_JANEIRO"
"wms_srs" "EPSG:4326 EPSG:3857"
"wms_include_items" "all"
END
COMPOSITE
OPACITY 70
END # COMPOSITE
# PROCESSING "KERNELDENSITY_NORMALIZATION=255"
# PROCESSING "RANGE_COLORSPACE=HSL"
CLASSITEM "[pixel]"
CLASS
NAME "class_hotcolors"
EXPRESSION ([pixel] >= 1)
STYLE
RANGEITEM "style_hotcolors"
COLORRANGE 1 0 0 255 0 0
DATARANGE 1 8549
END # STYLE
END # CLASS
CLASS
NAME "class_background"
EXPRESSION ([pixel] == 0)
STYLE
RANGEITEM "style_background"
COLORRANGE 0 0 0 0 0 0
DATARANGE 0 0
END # STYLE
END # CLASS
END
```
My best regards,
Ivan
2017-12-07 15:56 GMT-04:00 Ivan Ogasawara <ivan.ogasawara at gmail.com>:
> Sorry .. actually is OFFSITE
>
> OFFSITE [r] [g] [b] | [hexadecimal string]
>
> Sets the color index to treat as transparent for raster layers.
>
> -
>
> r, g and b shall be integers [0..255]. To specify black pixels, the
> following is used:
>
> OFFSITE 0 0 0
>
>
> As in the mapfile sent.
>
>
> 2017-12-07 15:52 GMT-04:00 Ivan Ogasawara <ivan.ogasawara at gmail.com>:
>
>> I guess I misunderstood the offset parameter (actually before I added the
>> colorrange parameter, offset was disabled).
>>
>> but after I've added the colorrange parameter, the background is not
>> transparent anymore ...
>>
>> 2017-12-07 15:41 GMT-04:00 Ivan Ogasawara <ivan.ogasawara at gmail.com>:
>>
>>> Hi Jukka,
>>>
>>>
>>> these are my map files, raster file and the image output.
>>>
>>>
>>> my best,
>>>
>>> Ivan
>>>
>>>
>>> 2017-12-07 2:36 GMT-04:00 Rahkonen Jukka (MML) <
>>> jukka.rahkonen at maanmittauslaitos.fi>:
>>>
>>>> Hi,
>>>>
>>>> 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.
>>>>
>>>> -Jukka Rahkonen-
>>>> ------------------------------
>>>> Lähettäjä: Ivan Ogasawara <ivan.ogasawara at gmail.com>
>>>> Lähetetty: 7.12.2017 4:28
>>>> Vastaanottaja: mapserver-users at lists.osgeo.org
>>>> Aihe: [mapserver-users] OFFSET and RAGECOLOR
>>>>
>>>> Dear all,
>>>>
>>>> when I use style colorrange the offset directive doesn't work.
>>>>
>>>> my mapserver install configurations is:
>>>>
>>>> ```
>>>> 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
>>>> 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
>>>> PORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>>>> ```
>>>>
>>>> any idea to resolve this problem?
>>>>
>>>> my best regards,
>>>> Ivan
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20171207/ade81c37/attachment.htm>
More information about the MapServer-users
mailing list