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

craig.gould at bt.com craig.gould at bt.com
Mon Mar 29 04:40:04 PST 2004


This is a multi-part message in MIME format.

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

Hi,

I've been trying to set up a WMS server for some UK Ordnance Survey
maps.
The map uses some MapInfo layers that I inherited from elsewhere, all
using the British National Grid projection.

I have set up a WMS server on a machine which responds correctly to the
GetCapabilities request.
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.

As soon as I add the SRS=3DEPSG:27700 parameter to the URL the cgi
application crashes and the browser returns
"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:

1. Using SRS EPSG:27700 in the WMS SRS metadata crashes the cgi
application.
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?
or
Is this a bug in the WMS code and is there a work around?

Many thanks

Craig.


p.s I'm using MapServer 4.1 from the windows binaries. Win2K, IIS, Dual
hyperthreaded pentium 4



Craig Gould=20
BT Exact
tel (01473) 644214
web www.btbrand.bt.com=20
__________________________________________
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_01C4158A.F5D90243
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>WMS Projection Error Causing Mapserver to Crash (Win32)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I've been trying to set up a WMS server =
for some UK Ordnance Survey maps.</FONT>

<BR><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>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have set up a WMS server on a machine =
which responds correctly to the GetCapabilities request.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">It also responds with a map if I use a =
Url such as </FONT>
</P>

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

<P><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>
</P>

<P><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>

<BR><SPAN LANG=3D"en-gb"><FONT FACE=3D"Times New Roman">"The =
specified CGI application misbehaved by not returning a complete set of =
HTTP headers. The headers it did return are:" - =
none</FONT></SPAN></P>

<P><SPAN LANG=3D"en-us"><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></SPAN>
</P>

<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">1. Using SRS =
EPSG:27700 in the WMS SRS metadata crashes the cgi =
application.</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><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-us"><FONT SIZE=3D2 FACE=3D"Arial">Am I doing =
something wrong here?</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">or</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Is this a bug in =
the WMS code and is there a work around?</FONT></SPAN>
</P>

<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Many =
thanks</FONT></SPAN>
</P>

<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"Arial">Craig.</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG=3D"en-us"><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></SPAN>
</P>
<BR>
<BR>

<P><SPAN LANG=3D"en-gb"><B><FONT SIZE=3D2 FACE=3D"Times New Roman">Craig =
Gould<BR>
BT Exact<BR>
tel (01473) 644214<BR>
web </FONT></B></SPAN><A HREF=3D"file://www.btbrand.bt.com"><SPAN =
LANG=3D"en-gb"><B><U><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Times New =
Roman">www.btbrand.bt.com</FONT></U></B></SPAN></A><SPAN =
LANG=3D"en-gb"><B><FONT SIZE=3D2 FACE=3D"Times New Roman"><BR>
</FONT></B><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> </SPAN>

<BR><SPAN LANG=3D"en-gb"><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><FONT FACE=3D"Times New Roman"></FONT></B> =
</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></P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C4158A.F5D90243--



More information about the MapServer-users mailing list