Opened 13 years ago
Closed 13 years ago
#3694 closed defect (fixed)
mapimageio.c does not seem to utilize msIO output.
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 6.0 release |
Component: | MapServer C Library | Version: | unspecified |
Severity: | normal | Keywords: | msio |
Cc: | tbonfort, dmorissette, tamas |
Description
The mapscript script:
import mapscript map = mapscript.mapObj( 'cnes.map') req = mapscript.OWSRequest() req.loadParamsFromURL( 'LAYERS=truemarble-gdal&FORMAT=image/jpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=1663269.7343875,1203424.5723063,1673053.6740063,1213208.511925&WIDTH=256&HEIGHT=256') mapscript.msIO_installStdoutToBuffer() map.OWSDispatch( req )
does not prevent the jpeg output from going to stdout as expected. This appears to be due to a lack of msio support in the newish mapimageio.c code. This destroys the usefulness of the WxS MapScript scripting capability.
I'll take a crack at fixing this.
Change History (6)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Cc: | added |
---|---|
Milestone: | → 6.0 release |
comment:3 by , 13 years ago
Cc: | added |
---|
comment:4 by , 13 years ago
One further issue is with saveGdImage called from mapimageio.c line 861.
comment:5 by , 13 years ago
It looks like saveGdImage() needs to use the gdIOCtx versions of the GD save functions instead of the FILE * based versions, like we did in mapgd.c in 5.6.x and earlier. I'm going to leave this to address next week in Montreal.
comment:6 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
aboudreault fixed the GD case in r11509
Preliminary support to capture direct writes to libjpeg, and libpng (r10996).
I'm not sure what more is required.