[mapserver-dev] mapserv 6.4.3 -nh is not working

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Mon Nov 14 13:22:48 PST 2016


Works for me with regular MapServer URLs, e.g.:

    /usr/local/mapserver-6-4/bin/mapserv -nh QUERY_STRING='mode=map&map=polygon-examples-hatch.map' > junk.png

But with a WMS GetMap url it's not working, at least on my box. Works as expected with 7.0. Was this working before 6.4.3?

-----Original Message-----
From: mapserver-dev [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Saturday, November 12, 2016 2:16 PM
To: mapserver-dev <mapserver-dev at lists.osgeo.org>
Subject: [mapserver-dev] mapserv 6.4.3 -nh is not working

Hi Devs,

I have found a problem with 6.4.3 while debugging another issue in that 
-nh is not suppressing the 'Content-Type: image/png' header:


$ /usr/local/bin/mapserv -nh 
QUERY_STRING='MAP=./test.map&FORMAT=image%2Fpng&MAP_IMAGETYPE=agg_qn&LAYERS=Australia&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=12813560.707781,-2467980.3837369,12814292.234029,-2467467.4196173&WIDTH=1225&HEIGHT=859' 
 > junk.png
CGI Request 1 on process 14401
msDrawMap(): rendering using outputformat named agg_qn (AGG/PNG).
msDrawMap(): WMS/WFS set-up and query, 0.000s
msDrawMap(): Layer 0 (flats), 314.227s
msDrawLabelCache(): labelcache_map_edge_buffer = 20
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 314.234s
msSaveImage(stdout) total time: 0.094s
mapserv request processing time (msLoadMap not incl.): 314.341s
msFreeMap(): freeing map at 0x10dade0.
freeLayer(): freeing layer at 0x10e78e0.

$ head -1 junk.png
Content-Type: image/png

$ /usr/local/bin/mapserv -v
MapServer version 6.4.3 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS 
SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER 
SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE

This is based on a clean build and install.

Can someone verify this or point me at the error in my ways. I'm happy 
to open an issue if you want one.

-Steve W

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev


More information about the mapserver-dev mailing list