Hi people,

I´m trying to display a raster layer from a tileindex file (.shp). The
source rasters for this shapefile are jpeg with the following info:

Driver: JPEG/JPEG JFIF
Size is 6401, 4001
Coordinate System is `'
Origin = (-15999.111000000001000,100001.744000000010000)
Pixel Size = (2.500000000000000,-2.500000000000000)
Corner Coordinates:
Upper Left  (  -15999.111,  100001.744)
Lower Left  (  -15999.111,   89999.244)
Upper Right (       3.389,  100001.744)
Lower Right (       3.389,   89999.244)
Center      (   -7997.861,   95000.494)
Band 1 Block=6401x1 Type=Byte, ColorInterp=Gray

The OUTPUT objects:
IMAGETYPE png32
        
        OUTPUTFORMAT
                NAME gif
                DRIVER "GD/GIF"
                MIMETYPE "image/gif"
                IMAGEMODE PC256
                EXTENSION "gif"
                TRANSPARENT ON
        END
        
        OUTPUTFORMAT
                NAME jpeg
                DRIVER "GD/JPEG"
                MIMETYPE "image/jpeg"
                IMAGEMODE PC256
                EXTENSION "jpg"
                
        END

        OUTPUTFORMAT
                NAME png32
                DRIVER "GDAL/PNG"
                IMAGEMODE RGBA
                TRANSPARENT ON
        END


The layer object:
LAYER
                NAME         vinte_cinco_alta
                METADATA
                        "wms_title" "vinte_cinco_alta"
                END 
                STATUS          ON
                TILEINDEX       '25000_alta.shp'
                TILEITEM        'location'
                TYPE            RASTER
                
                #PROCESSING "SCALE_1=3,0"
                #PROCESSING "SCALE_2=3,0"
                #PROCESSING "SCALE_3=3,0"
                #PROCESSING "SCALE=AUTO"
                #PROCESSING "COLOR_MATCH_THRESHOLD=1"
                #PROCESSING "BANDS=2
                
                OFFSITE 255 255 255
                
                TRANSPARENCY ALPHA
                
            PROJECTION
              "init=epsg:27492"
            END 
                DEBUG           ON
                
                MINSCALE        10000
                MAXSCALE        26000
                
        END

My prob is that i can´t force mapserver only to render the black color in
the rasters (i tried changing several parameters in the layer object, and
using different output declarations). If it´s possible can u show it to me?

The output format isn´t important, just wanna get fully transparent layers
(in colors grey and white, keeping black).

Thanks in advance!

Cumps, Pedro Mendes
-- 
View this message in context: 
http://www.nabble.com/Transparent-raster-layer-%28with-Jpegs-source-rasters%29-tf4549266.html#a12982125
Sent from the Mapserver - User mailing list archive at Nabble.com.

Reply via email to