Ticket #2788 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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) (diff)

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

Changed 5 years ago by flavio

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

Changed 5 years ago by tbonfort

what version are you using?

this was supposed to be fixed in #2540

Changed 5 years ago by flavio

5.2.0

Changed 5 years ago by flavio

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

Changed 5 years ago by tbonfort

  • description modified (diff)

Flavio, do please recheck your mapserver version

I cannot reproduce with 5.2

Changed 5 years ago by flavio

  • status changed from new to closed
  • resolution set to fixed

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.