Opened 15 years ago

Closed 15 years ago

#2788 closed defect (fixed)

OFFSITE does not work with PROCESSING "RESAMPLE"

Reported by: flavio Owned by: warmerdam@…
Priority: normal Milestone:
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by tbonfort)

Setting an OFFSITE to make a color transparent does not work when PROCESSING "RESAMPLE" is set or when an image is rotated (i.e. referenced by a tfw with rotation params) . The specified OFFSITE always turns out black, no matter what output format is specified (I tried any AGG output, 8bit, RBG and RGBA). Any image can be used to test (i.e. 8bit, 24bit).'

Change History (6)

comment:1 by flavio, 15 years ago

You should be able to test with any image containing a lot of white ... it should turn black ...

Sample Map-File section:

LAYER

NAME "ÜP" TYPE RASTER STATUS ON OFFSITE 255 255 255 DATA "raster/ZP_1980/Zonenplan1980_West.tif" PROCESSING "RESAMPLE=AVERAGE" PROJECTION

"init=epsg:21781"

END

END

Output formats tested:

OUTPUTFORMAT

NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256"

END

OUTPUTFORMAT

NAME 'AGG_PNG_24' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON

END

OUTPUTFORMAT

NAME 'AGG_JPEG' DRIVER AGG/JPEG IMAGEMODE RGB FORMATOPTION "QUALITY=100"

END

comment:2 by tbonfort, 15 years ago

what version are you using?

this was supposed to be fixed in #2540

comment:3 by flavio, 15 years ago

5.2.0

comment:4 by flavio, 15 years ago

Thomas, be aware that OFFSITE along with AGG works if there is no resampling or rotation.

comment:5 by tbonfort, 15 years ago

Description: modified (diff)

Flavio, do please recheck your mapserver version

I cannot reproduce with 5.2

comment:6 by flavio, 15 years ago

Resolution: fixed
Status: newclosed

Thomas, Frank ... apologize. On the server I tested it was indeed 5.1dev and not 5.2. in 5.2 it works. Sorry again for the hassle. Case closed.

Note: See TracTickets for help on using tickets.