[mapserver-users] Raster Layer Backgound Color
Mario Franco
mario.franco at ydreams.com
Thu Sep 16 08:50:41 PDT 2010
I have this raster that have some areas with no image:
# Start of layer: Carta Militar
LAYER
NAME "Carta_Militar"
METADATA
"wms_title" "Carta Militar" # required
"wfs_title" "Carta Militar" # required
"gml_featureid" "ID" ## REQUIRED
"gml_include_items" "all" # Optional (serves all
attributes for layer)
END
TYPE raster
#CONNECTIONTYPE SDE
CONNECTIONTYPE PLUGIN
PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll"
CONNECTION "128.1.0.79,port:5151,sde,sde,sdeinag"
DATA "SDE:xxx,port:5151,xxx,xxx,xxx,SDE.MILITAR_25K_RAAC_GE,RASTER"
PROJECTION
"init=EPSG:32626" #--sistema de coordenadas desta layer na origem
END
STATUS ON
TRANSPARENCY 100
# Start of layer Classes
CLASS
NAME "Carta Administrativa Oficial"
SYMBOL "symbols/images/map_icon.gif"
COLOR -1 -1 -1
BACKGROUNDCOLOR -1 -1 -1
END
END
I tried different colors but the areas with no data always appear as black.
thx
Mário Franco
On 16-09-2010 16:42, Alexander Petkov wrote:
> Can you post the relevant snippet from your map file that shows what
> you have tried?
>
> Alex
>
> On Thu, Sep 16, 2010 at 9:18 AM, Mario Franco<mario.franco at ydreams.com> wrote:
>> It's possible to change the background color of a raster layer where there
>> isn't data, I tried the color and background parameter in class element none
>> of them works.
>> If I use the offsite it works but also puts transparent back elements in the
>> raster (ex: some labels).
>> Any help is welcome.
>>
>>
>> Mário Franco
>>
>> _______________________________________________
>> 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