<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.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
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a strange problem with NQuery and Mapserver 4.20
using CGI scripting<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have this all setup and working on a development server
and on a test deployment server (which basically mimics the public server setup
– W2K server – all patches applied)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Generally mapserver works fine on all servers – with
one exception – on the live public server (typically!) – Nquery
appears to hang mapserver and eventually you get a timeout error.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If I use a MODE=Query – and basically query a point
– all is fine – so all the .MAP files and setup is OK (and other
mapping functionality works fine)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This Call works:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>============<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>http://testurl/scripts/mapserv420.exe?map=C:/Inetpub/ClareSpeciesRecording/tmp/CachedMap.map&MODE=QUERY&imgext=79735
148322.5 105250 173837.5&img.x=262&img.y=192&layers=ClareOS50K
Species&QLAYER=Species&map_Species_Template=templates/Specieskey.html&SAVEQUERY=true&map_web_imagepath=C:\Inetpub\ClareSpeciesRecording\tmp\&map_web_imageurl=http://testurl/tmp/&MAPSIZE=400
400&map_QueryMap_Size=400 400&map_ClareOS50K_LABELITEM=NULL&map_Species_LABELITEM=NULL&map_querymap_style=hilite<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If I use MODE=NQuery and supply an IMGSHAPE then it fails<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This call fails:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>==========<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>http://testurl/scripts/mapserv420.exe?map=C:/Inetpub/ClareSpeciesRecording/tmp/CachedMap.map&MODE=NQUERY&IMGSHAPE=81
100 234 100 234 271 81 271 &imgext=79735 148322.5 105250
173837.5&layers=ClareOS50K
Species&QLAYER=Species&map_Species_Template=templates/Specieskey.html&map_Species_Tolerance=1&SAVEQUERY=true&map_web_imagepath=C:\Inetpub\ClareSpeciesRecording\tmp\&map_web_imageurl=http://testurl/tmp/&MAPSIZE=400
400&map_QueryMap_Size=400
400&map_ClareOS50K_LABELITEM=NULL&map_Species_LABELITEM=NULL&map_querymap_style=hilite<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Please remember – BOTH the above calls work on what is
supposed to be an IDENTICAL setup.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Although the examples here show lengthy URLs – in
practice the parameters are posted to mapserver – just in case URL length
is an issue <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I don’t really know where to start looking for this – I
presume Mapserver is setup OK because it basically works and works for the
Query mode which is using identical data. The call is OK as it
works fine on other servers.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Can anyone think of a server / firewall / IIS setting that could cause
this to happen ? A missing mapserver file ?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Any other suggestions ? As it’s the public server that has the
issue – this is causing me some grief !<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Any ideas gratefully received<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Many Thanks<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>James<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<div>
<p><font size=1 color=green face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:green'>Dr James Perrins<br>
exeGesIS SDM Ltd<br>
Great House Barn<br>
New Street, Talgarth<br>
Powys LD3 0AH.<br>
Direct Line: 01646 686650<br>
Tel: 01874 711145<br>
Fax: 01874 711156<br>
Email: <a href="mailto:JamesP@esdm.co.uk" title="mailto:JamesP@esdm.co.uk">JamesP@esdm.co.uk</a></span></font><o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>This
E-mail and any files transmitted with it are private and intended solely for
the use of the individual or entity to whom they are addressed. If you are not
the intended recipient, the E-mail and any files have been transmitted to you
in error and any copying, distribution or other use of the information
contained in them is strictly prohibited.</span></font><o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Nothing
in this E-mail message amounts to a contractual or other legal commitment on
the part of exeGesIS SDM Ltd unless confirmed by a signed communication.</span></font><o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>exeGesIS
SDM Ltd will make every effort to keep its network free of viruses. However,
the recipient of this message will need to scan this message, and any
attachments, for viruses, as exeGesIS SDM Ltd can take no responsibility for
any computer virus that might be transferred by this e-mail.</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>