[mapserver-users] TRANSPARENCY PROBLEM

Pietro Giannini pgiannini at bytewise.it
Mon Nov 17 16:34:53 EST 2008


John,
what do you mean when you say "transparent colored polygon"?
........... pg


On Lun, Novembre 17, 2008 18:16, John Kummun wrote:
> hi Pietro,
> I made some changes you suggested but i only get faded layer. I want to be
> able to see through it to see the aerial photo. I tried COLOR -1 -1 -1 but
> it makes the polygon hollow...my doesn't like that. He wants transparent
> colored polygon. I hope you understand what i am trying say. Here is the
> mapfile again. Please copy and make changes you feel is the best for me:
> MAP
>  NAME 'School_boundary'
>  SIZE 800 650
>  STATUS ON
>  EXTENT  347683.125124 1652890.274125 458837.845673 1759026.124282
>  UNITS feet
>  FONTSET '../fonts/fonts.list'
>  SYMBOLSET '../symbols/symbol.sym'
>      TRANSPARENT ON
>  IMAGETYPE PNG
>  QUERYMAP
>   STATUS ON
>   STYLE SELECTED
>  END
>  WEB
>        IMAGEURL "/ms4w/tmp/ms_tmp/"
>        IMAGEPATH "/ms4w/tmp/ms_tmp/"
>  END
>  LEGEND
>   STATUS ON
>  END
>
>   LAYER
>     NAME 'School_district'
>     TYPE POLYGON
>     DATA
> '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp'
>     METADATA
>       'wms_title' 'school_boundary'
>     END
>     STATUS DEFAULT
>     TRANSPARENCY 25
>     #MAXSCALE 2000000
>     LABELITEM 'NAME'
>     CLASS
>        NAME 'school_district'
>        SYMBOL 0
>        SIZE 2
>        OUTLINECOLOR 0 255 170
>        COLOR 224 255 255
>     LABEL
>       TYPE TRUETYPE
>       FONT arial
>       SIZE 8
>       COLOR 233 122 100
>       ANGLE 0
>       POSITION CC
>       MINDISTANCE 250
>       BUFFER 1
>       WRAP " "
>      END
>     END
>   END
> END
>  
> thanks
> John
>
> --- On Mon, 11/17/08, Pietro Giannini <pgiannini at bytewise.it> wrote:
>
> From: Pietro Giannini <pgiannini at bytewise.it>
> Subject: Re: [mapserver-users] TRANSPARENCY PROBLEM
> To: mapserver-users at lists.osgeo.org
> Date: Monday, November 17, 2008, 8:57 AM
>
> Hi john,
> simply omit the whole STYLE in the class, this make the layer transparent.
> Or, if this seems dirty, set COLOR -1 -1 -1 and OUTLINECOLOR -1 -1 -1.
> In fact the TRANSPARENCY 1 render a very faded layer, while TRANSPARENCY 0
> is like TRANSPARENCY 100...
>
> (TRANSPARENCY is deprecated in ms5, use OPACITY)
>
> let me know, ciao
> .....................................pg
>
>
> --
> Pietro Giannini
> Bytewise srl - Area GIS
> 41°50'38.58"N 12°29'13.39"E
>
>
>
> On Lun, Novembre 17, 2008 17:00, ntiamoah bernard wrote:
>> Hi guys,
>> I need suggestions for the following problem:
>>  
>>  I want to put transparency on polygon layer so that aerial photo could
> be
>> seen below it. I have tried TRANSPARECY and OPACITY but i only get faded
>> not transparent layer. My imagetype is PNG. Here is the mapfile
>>  
>> MAP
>>  NAME 'School_boundary'
>>  SIZE 800 650
>>  STATUS ON
>>  EXTENT  347683.125124 1652890.274125 458837.845673 1759026.124282
>>  UNITS feet
>>  FONTSET '../fonts/fonts.list'
>>  SYMBOLSET '../symbols/symbol.sym'
>>     OUTPUTFORMAT
>>     NAME 'png'
>>     DRIVER GD/PNG
>>     IMAGEMODE RGBA
>>     EXTENSION "png"
>>     FORMATOPTION "FULL_RESOLUTION=TRUE"
>>     FORMATOPTION "INTERLACE=OFF"
>>     TRANSPARENT ON
>>     END #end outputformat
>>  #IMAGETYPE PNG
>>  QUERYMAP
>>   STATUS ON
>>   STYLE SELECTED
>>  END
>>  WEB
>>        IMAGEURL "/ms4w/tmp/ms_tmp/"
>>        IMAGEPATH "/ms4w/tmp/ms_tmp/"
>>  END
>>  LEGEND
>>   STATUS ON
>>  END
>>
>>   LAYER
>>     NAME 'School_district'
>>     TYPE POLYGON
>>     DATA
>>
> '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp'
>>     METADATA
>>       'wms_title' 'school_boundary'
>>     END
>>     STATUS DEFAULT
>>     TRANSPARENCY 20
>>     #MAXSCALE 2000000
>>     LABELITEM 'NAME'
>>     CLASS
>>        NAME 'esn_boundary'
>>        STYLE
>>          SYMBOL 0
>>          SIZE 2
>>          OUTLINECOLOR 0 255 170
>>          COLOR 224 255 255
>>        END
>>      LABEL
>>       TYPE TRUETYPE
>>       FONT arial
>>       SIZE 8
>>       COLOR 233 122 100
>>       ANGLE 0
>>       POSITION CC
>>       MINDISTANCE 250
>>       BUFFER 1
>>       WRAP " "
>>      END
>>     END
>>   END
>> END
>>  
>> Thanks
>> John
>> Indiana
>>
>>
>>       _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> _______________________________________________
> 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