[Mapserver-users] WMS Projection Error Causing Mapserver to Crash (Win32)

craig.gould at bt.com craig.gould at bt.com
Tue Mar 30 08:05:29 EST 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C41657.ACCB61A5
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I haven't solved this yet but a small follow up:=20
- I'm using the latest stable release : 4.0.1, not 4.1 as stated below.=20
- The crash happens when using any non Lat/Long projection. Any Lat/Long
projection number I chose returns a map via the WMS client, and a blank
image via the web browser.=20
Craig.=20


-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
craig.gould at bt.com
Sent: 29 March 2004 13:40
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] WMS Projection Error Causing Mapserver to
Crash (Win32)

Hi,=20
I've been trying to set up a WMS server for some UK Ordnance Survey
maps.=20
The map uses some MapInfo layers that I inherited from elsewhere, all
using the British National Grid projection.=20
I have set up a WMS server on a machine which responds correctly to the
GetCapabilities request.=20
It also responds with a map if I use a Url such as=20
http://myIPAddress/cgi-bin/MapServ40.exe?map=3DC:\inetpub\gis\wwwroot\OSM=
a
pServer\OS.map&SERVICE=3DWMS&VERSION=3D1.1.0&LAYERS=3D&FORMAT=3Dimage%2Fp=
ng&TRAN
SPARENT=3DTRUE&STYLES=3D&REQUEST=3DGetMap&WIDTH=3D600&HEIGHT=3D480&BBOX=3D=
304499.570
199,207931.455749,304914.609271,208262.998725&EXCEPTIONS=3Dapplication/vn=
d
.ogc.se_inimage
Note this request does NOT contain an SRS parameter. The map returned is
correct and in the correct BNG projection.=20
As soon as I add the SRS=3DEPSG:27700 parameter to the URL the cgi
application crashes and the browser returns=20
"The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:" - none
If I use a WMS client layer to the server in another working map file
the following occurrs:=20
1. Using SRS EPSG:27700 in the WMS SRS metadata crashes the cgi
application.=20
2. Using SRS EPSG:4326 in the WMS SRS metadata returns a map with the
requested WMS layers - but in the wrong projection.
Am I doing something wrong here?=20
or=20
Is this a bug in the WMS code and is there a work around?=20
Many thanks=20
Craig.=20
p.s I'm using MapServer 4.1 from the windows binaries. Win2K, IIS, Dual
hyperthreaded pentium 4=20


Craig Gould
BT Exact
web www.btbrand.bt.com
__________________________________________
British Telecommunications plc
Registered office: 81 Newgate Street London EC1A 7AJ
Registered in England no. 1800000=20
This electronic message contains information from British
Telecommunications plc which may be privileged and confidential. The
information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this
information is prohibited. If you have received this electronic message
in error, please notify us by telephone or email (to the number or
address above) immediately.=20
Activity and use of the British Telecommunications plc email system is
monitored to secure its effective operation and for other lawful
business purposes. Communications using this system will also be
monitored and may be recorded to secure effective operation and for
other lawful business purposes

------_=_NextPart_001_01C41657.ACCB61A5
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6487.1">
<TITLE>RE: [Mapserver-users] WMS Projection Error Causing Mapserver to =
Crash (Win32)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG=3D"en-gb"><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">I haven't solved this yet but a small follow =
up:</FONT><FONT FACE=3D"Times New Roman"> </FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">- I'm using the latest stable release : 4.0.1, not 4.1 as =
stated below.</FONT><FONT FACE=3D"Times New Roman"> </FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">- The crash happens when using any non Lat/Long =
projection. Any Lat/Long projection number I chose returns a map via the =
WMS client, and a blank image via the web browser.</FONT><FONT =
FACE=3D"Times New Roman"> </FONT></SPAN></P>

<P><SPAN LANG=3D"en-gb"><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">Craig.</FONT><FONT FACE=3D"Times New Roman"> =
</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Tahoma">-----Original =
Message-----<BR>
<B>From:</B> mapserver-users-admin at lists.gis.umn.edu [</FONT></SPAN><A =
HREF=3D"mailto:mapserver-users-admin at lists.gis.umn.edu"><SPAN =
LANG=3D"en-gb"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Tahoma">mailto:mapserver-users-admin at lists.gis.umn.edu</FONT></U>=
</SPAN></A><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 =
FACE=3D"Tahoma">]</FONT><B> <FONT SIZE=3D2 FACE=3D"Tahoma">On Behalf =
Of</FONT></B> <FONT SIZE=3D2 FACE=3D"Tahoma">craig.gould at bt.com<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Sent:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> 29 March 2004 13:40<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">To:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> mapserver-users at lists.gis.umn.edu<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Subject:</FONT></B><FONT =
SIZE=3D2 FACE=3D"Tahoma"> [Mapserver-users] WMS Projection Error Causing =
Mapserver to Crash (Win32)<BR>
</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">Hi,</FONT><FONT =
FACE=3D"Times New Roman"> </FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">I've been trying =
to set up a WMS server for some UK Ordnance Survey maps.</FONT><FONT =
FACE=3D"Times New Roman"><BR>
</FONT><FONT SIZE=3D2 FACE=3D"Arial">The map uses some MapInfo layers =
that I inherited from elsewhere, all using the British National Grid =
projection.</FONT><FONT FACE=3D"Times New Roman"> </FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">I have set up a =
WMS server on a machine which responds correctly to the GetCapabilities =
request.</FONT><FONT FACE=3D"Times New Roman"><BR>
</FONT><FONT SIZE=3D2 FACE=3D"Arial">It also responds with a map if I =
use a Url such as</FONT> </SPAN>

<BR><SPAN LANG=3D"en-gb"></SPAN><A =
HREF=3D"http://myIPAddress/cgi-bin/MapServ40.exe?map=3DC:\inetpub\gis\www=
root\OSMapServer\OS.map&amp;SERVICE=3DWMS&amp;VERSION=3D1.1.0&amp;LAYERS=3D=
&amp;FORMAT=3Dimage%2Fpng&amp;TRANSPARENT=3DTRUE&amp;STYLES=3D&amp;REQUES=
T=3DGetMap&amp;WIDTH=3D600&amp;HEIGHT=3D480&amp;BBOX=3D304499.570199,2079=
31.455749,304914.609271,208262.998725&amp;EXCEPTIONS=3Dapplication/vnd.og=
c.se_inimage"><SPAN LANG=3D"en-gb"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">http://myIPAddress/cgi-bin/MapServ40.exe?map=3DC:\inetpub\=
gis\wwwroot\OSMapServer\OS.map&amp;SERVICE=3DWMS&amp;VERSION=3D1.1.0&amp;=
LAYERS=3D&amp;FORMAT=3Dimage%2Fpng&amp;TRANSPARENT=3DTRUE&amp;STYLES=3D&a=
mp;REQUEST=3DGetMap&amp;WIDTH=3D600&amp;HEIGHT=3D480&amp;BBOX=3D304499.57=
0199,207931.455749,304914.609271,208262.998725&amp;EXCEPTIONS=3Dapplicati=
on/vnd.ogc.se_inimage</FONT></U></SPAN></A><SPAN =
LANG=3D"en-gb"></SPAN></P>

<P><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">Note this request =
does NOT contain an SRS parameter. The map returned is correct and in =
the correct BNG projection.</FONT><FONT FACE=3D"Times New Roman"> =
</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">As soon as I add =
the SRS=3DEPSG:27700 parameter to the URL the cgi application crashes =
and the browser returns</FONT><FONT FACE=3D"Times New Roman"><BR>
&quot;The specified CGI application misbehaved by not returning a =
complete set of HTTP headers. The headers it did return are:&quot; - =
none</FONT></SPAN></P>

<P><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">If I use a WMS =
client layer to the server in another working map file the following =
occurrs:</FONT><FONT FACE=3D"Times New Roman"> </FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">1. Using SRS =
EPSG:27700 in the WMS SRS metadata crashes the cgi =
application.</FONT><FONT FACE=3D"Times New Roman"><BR>
</FONT><FONT SIZE=3D2 FACE=3D"Arial">2. Using SRS EPSG:4326 in the WMS =
SRS metadata returns a map with the requested WMS layers - but in the =
wrong projection.</FONT></SPAN></P>

<P><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">Am I doing =
something wrong here?</FONT><FONT FACE=3D"Times New Roman"><BR>
</FONT><FONT SIZE=3D2 FACE=3D"Arial">or</FONT><FONT FACE=3D"Times New =
Roman"><BR>
</FONT><FONT SIZE=3D2 FACE=3D"Arial">Is this a bug in the WMS code and =
is there a work around?</FONT><FONT FACE=3D"Times New Roman"> =
</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">Many =
thanks</FONT><FONT FACE=3D"Times New Roman"> </FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 =
FACE=3D"Arial">Craig.</FONT><FONT FACE=3D"Times New Roman"> =
</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Arial">p.s I'm using =
MapServer 4.1 from the windows binaries. Win2K, IIS, Dual hyperthreaded =
pentium 4</FONT><FONT FACE=3D"Times New Roman"> </FONT></SPAN>
<BR>
</P>

<P><SPAN LANG=3D"en-gb"><B><FONT SIZE=3D2 FACE=3D"Times New Roman">Craig =
Gould<BR>
BT Exact<BR>
web</FONT></B> </SPAN><A HREF=3D"file://www.btbrand.bt.com"><SPAN =
LANG=3D"en-gb"><U></U><U><B></B></U><U><B><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Times New =
Roman">www.btbrand.bt.com</FONT></B></U></SPAN></A><SPAN =
LANG=3D"en-gb"><BR>
<FONT SIZE=3D2 FACE=3D"Times New =
Roman">__________________________________________<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Times New Roman">British =
Telecommunications plc<BR>
Registered office: 81 Newgate Street London EC1A 7AJ<BR>
Registered in England no. 1800000</FONT></B><FONT FACE=3D"Times New =
Roman"><BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Times New Roman">This electronic =
message contains information from British Telecommunications plc which =
may be privileged and confidential. The information is intended to be =
for the use of the individual(s) or entity named above. If you are not =
the intended recipient, be aware that any disclosure, copying, =
distribution or use of the contents of this information is prohibited. =
If you have received this electronic message in error, please notify us =
by telephone or email (to the number or address above) =
immediately.</FONT></B><FONT FACE=3D"Times New Roman"> =
</FONT></SPAN></P>

<P><SPAN LANG=3D"en-gb"><B><FONT SIZE=3D2 FACE=3D"Times New =
Roman">Activity and use of the British Telecommunications plc email =
system is monitored to secure its effective operation and for other =
lawful business purposes. Communications using this system will also be =
monitored and may be recorded to secure effective operation and for =
other lawful business purposes</FONT></B></SPAN><B><SPAN =
LANG=3D"en-us"></SPAN></B><SPAN LANG=3D"en-us"></SPAN><SPAN =
LANG=3D"en-us"></SPAN></P>

</BODY>
</HTML>
------_=_NextPart_001_01C41657.ACCB61A5--



More information about the mapserver-users mailing list