[Mapserver-users] WMS Client Layer

Brian Fischer bfischer at mpls.houstoneng.com
Tue Apr 1 10:12:02 PST 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2F87A.31C0008D
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I just noticed that a few of our MapServer application's WMS layers are
not displaying.  These layers previously worked fine with a gif image
format.  I investigated and noticed the WMS service does not support the
gif format that we were using.  It looks like they have switch it to png
instead of gif.  Since the the mapserver app. is using gif as the output
image format, Can I use the png format from a WMS server?  When I tried
to switch to png it just hangs.  I am using version 3.6.3 that is
compiled with =20

  GD v1.8.4 (provides GIF, PNG, JPEG output)

  ZLIB v1.2.3 (compression support)

  PNG v1.0.11 (PNG support)=20

  Regex v0.8.2 (Regular expression support for Win32)=20

  Proj.4 v4.4.5 (on-the-fly reprojection, WMS projection support)=20

  Freetype v1.3.1 (TrueType font support)=20

  OGR (MapInfo tab, Tiger, SDTS, S57, NTF, GML, Arc/Info coverage, DGN,=20

  PostgreSQL)=20

  GDAL (TIFF/GeoTIFF, JPEG, Arc/Info Grid, generic binary with ENVI or
ESRI=20

  header, ERDAS Imagine, USGS DOQ, SDTS, ECW, etc.)=20

  ECW (ERMapper ECW-compressed images)=20

  EPPL7 (Epic/Eppl7 raster format)=20

  PostgreSQL 7.2.1 client library (PostGIS support)=20

  LibWWW (WMS client support)

=20

So I thought I would just use the jpeg format they support instead.
When I tried this format I get an error in the MapServer app.  It says:=20


"CGI Error


The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:=20

JPEG parameter struct mismatch: library thinks size is 432, caller
expects 464"

=20

Has anyone seen this error? Any ideas on what is causing this?  When I
just try the connection string in the browser it returns the image.
Here is my mapfile layer:

=20

LAYER

  NAME MnDNRDOQ3m

  METADATA

            "wms_title" "MNDNR DOQ MapServer for the Red River Basin
Disaster Information Network (RRBDIN)."

            "wms_srs" "EPSG:26915"

  END

  TYPE RASTER

  STATUS OFF

  MAXSCALE 100000

  MINSCALE 1000

  CONNECTIONTYPE WMS

  CONNECTION
"http://maps.dnr.state.mn.us/cgi-bin/mapserv_wms?map=3DRRBDIN_MAPFILE&VER=
S
ION=3D1.1.0&REQUEST=3DGetMap&layers=3Ddoq03im4&Transparent=3Dfalse&FORMAT=
=3Dimage/
jpeg"

  PROJECTION

      "init=3DEPSG:26915"

  END

 End #layer WMS MnDNR Doqs

=20

Thanks,

Brian

=20

=20

Brian Fischer

Houston Engineering, Inc.

Suite 106, 10900 73rd Avenue North

Maple Grove, Minnesota 55369

E-mail: bfischer at mpls.houstoneng.com

Web: http://www.houstonengineeringinc.com
<http://www.houstonengineeringinc.com/>=20

(V) 763-493-4522

(F) 763-493-5572

=20


------_=_NextPart_001_01C2F87A.31C0008D
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
h1
	{margin-right:0in;
	margin-left:0in;
	font-size:24.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I just noticed that a few of our MapServer =
application’s
WMS layers are not displaying.  These layers previously worked fine =
with a
gif image format.  I investigated and noticed the WMS service does =
not
support the gif format that we were using.  It looks like they have =
switch
it to png instead of gif.  Since the the mapserver app. is using =
gif as
the output image format, Can I use the png format from a WMS =
server?  When
I tried to switch to png it just hangs.  I am using version 3.6.3 =
that is
compiled with  </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  GD v1.8.4 (provides GIF, PNG, JPEG =
output)</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  ZLIB v1.2.3 (compression =
support)</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  PNG v1.0.11 (PNG support) </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  Regex v0.8.2 (Regular expression support for =
Win32) </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  Proj.4 v4.4.5 (on-the-fly reprojection, WMS
projection support) </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  Freetype v1.3.1 (TrueType font support) =
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  OGR (MapInfo tab, Tiger, SDTS, S57, NTF, GML,
Arc/Info coverage, DGN, </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  PostgreSQL) </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  GDAL (TIFF/GeoTIFF, JPEG, Arc/Info Grid, =
generic
binary with ENVI or ESRI </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  header, ERDAS Imagine, USGS DOQ, SDTS, ECW, =
etc.) </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  ECW (ERMapper ECW-compressed images) =
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  EPPL7 (Epic/Eppl7 raster format) =
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  PostgreSQL 7.2.1 client library (PostGIS =
support) </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  LibWWW (WMS client support)</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>So I thought I would just use the jpeg format they =
support
instead.  When I tried this format I get an error in the MapServer =
app.
 It says: </span></font></p>

<h1><b><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>“</span></font>CGI
Error</b></h1>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>The specified CGI application misbehaved by not returning a =
complete
set of HTTP headers. The headers it did return are: </span></font></p>

<pre><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>JPEG parameter struct mismatch: library =
thinks size is 432, caller expects 464”</span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Has anyone seen this error? Any ideas on what is =
causing
this?  When I just try the connection string in the browser it =
returns the
image.  Here is my mapfile layer:</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>LAYER</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  NAME MnDNRDOQ3m</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  METADATA</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>         =
  
"wms_title" "MNDNR DOQ MapServer for the Red River Basin
Disaster Information Network (RRBDIN)."</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>         =
  
"wms_srs" "EPSG:26915"</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  END</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  TYPE RASTER</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  STATUS OFF</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  MAXSCALE 100000</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  MINSCALE 1000</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  CONNECTIONTYPE WMS</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  CONNECTION =
"http://maps.dnr.state.mn.us/cgi-bin/mapserv_wms?map=3DRRBDIN_MAPFIL=
E&VERSION=3D1.1.0&REQUEST=3DGetMap&layers=3Ddoq03im4&Tran=
sparent=3Dfalse&FORMAT=3Dimage/jpeg"</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  PROJECTION</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>      =
"init=3DEPSG:26915"</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  END</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> End #layer WMS MnDNR Doqs</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Brian</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoAutoSig><b><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>Brian Fischer</span></font></b></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Houston Engineering, Inc.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
  font-family:Arial'>Suite</span></font><font size=3D2 =
face=3DArial><span
 style=3D'font-size:10.0pt;font-family:Arial'> 106</span></font><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>, =
</span></font><font
  size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>10900 73rd
  Avenue North</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
  font-family:Arial'>Maple Grove</span></font><font size=3D2 =
face=3DArial><span
 style=3D'font-size:10.0pt;font-family:Arial'>, </span></font><font =
size=3D2
  face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>Minnesota</span></font><font=

 size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> </span></font><font
  size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>55369</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>E-mail: <a =
href=3D"mailto:bfischer at mpls.houstoneng.com">bfischer at mpls.houstoneng.com=
</a></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Web: <a =
href=3D"http://www.houstonengineeringinc.com/">http://www.houstonengineer=
inginc.com</a></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>(V) 763-493-4522</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>(F) 763-493-5572</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C2F87A.31C0008D--



More information about the MapServer-users mailing list