<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div><font color="#993366">I think I found the problem,&nbsp; in my PHP script that processes the Query Results was the line &#8216;$oLayer-&gt;Close()&#8217;.&nbsp; I am guessing that this now closes the layer.&nbsp; I have commented it out and the application seems to be working.</font></div>
<div><font color="#993366">______________________<br>

<b>Ian Tidy</b> <br>

<b>GIS Analyst / Developer<br>

</b>Works Asset Department <br>

Napier City Council <br>

<a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=mailto%3aiant%40napier.govt.nz"><font color="#0000FF"><u>mailto:iant@napier.govt.nz</u></font></a><br>

<a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=http%3a%2f%2fwww.napier.govt.nz"><font color="#0000FF"><u>http://www.napier.govt.nz</u></font></a> | <a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=http%3a%2f%2fmaps.napier.govt.nz"><font color="#0000FF"><u>http://maps.napier.govt.nz</u></font></a>
</font></div>
<div><font face="Calibri, sans-serif" size="2" color="#993366">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2" color="#993366">&nbsp;</font></div>
<div><font face="Tahoma, sans-serif">_____________________________________________<br>

<b>From:</b> Ian Tidy <br>

<b>Sent:</b> Monday, 10 May 2010 9:40 p.m.<br>

<b>To:</b> mapserver-users@lists.osgeo.org<br>

<b>Cc:</b> Ian Tidy<br>

<b>Subject:</b> RE: PHP/MapScript - Error - msLayerGetShape() - URGENT</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" color="#1F497D">I have worked out that this happens for layers I am drawing after querying them.&nbsp; But I don&#8217;t understand why...</font></div>
<div><font face="Calibri, sans-serif" color="#1F497D">______________________<br>

<b>Ian Tidy</b> <br>

<b>GIS Analyst / Developer<br>

</b>Works Asset Department <br>

Napier City Council <br>

<a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=mailto%3aiant%40napier.govt.nz"><font color="#0000FF"><u>mailto:iant@napier.govt.nz</u></font></a><br>

<a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=http%3a%2f%2fwww.napier.govt.nz"><font color="#0000FF"><u>http://www.napier.govt.nz</u></font></a> | <a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=http%3a%2f%2fmaps.napier.govt.nz"><font color="#0000FF"><u>http://maps.napier.govt.nz</u></font></a>
</font></div>
<div><font face="Calibri, sans-serif" size="2" color="#1F497D">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2" color="#1F497D">&nbsp;</font></div>
<div><font face="Tahoma, sans-serif">_____________________________________________<br>

<b>From:</b> Ian Tidy <br>

<b>Sent:</b> Monday, 10 May 2010 9:20 p.m.<br>

<b>To:</b> mapserver-users@lists.osgeo.org<br>

<b>Cc:</b> Ian Tidy<br>

<b>Subject:</b> PHP/MapScript - Error - msLayerGetShape() - URGENT</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif">I have just upgraded from Ubuntu Linux 9.10 to 10.04 LTS and I am now getting the following error:</font></div>
<div><font face="Calibri, sans-serif">[Mon May 10 21:09:50 2010].196000 msLayerGetShape(): Shapefile error. Shapefile layer has not been opened.</font></div>
<div><font face="Calibri, sans-serif">[Mon May 10 21:09:50 2010].196000 msDrawMap(): Image handling error. Failed to draw layer named 'ncspropinfo'.</font></div>
<div><font face="Calibri, sans-serif">&nbsp;</font></div>
<div><font face="Calibri, sans-serif">Everything was working until I upgraded to OS (and MapServer).&nbsp; I have been able to replicate the problem on a Windows machine using MS4W 3 Beta.</font></div>
<div><font face="Calibri, sans-serif">&nbsp;</font></div>
<div><font face="Calibri, sans-serif">My Linux server reports MapServer version:</font></div>
<div><font face="Calibri, sans-serif">MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</font></div>
<div><font face="Calibri, sans-serif">&nbsp;</font></div>
<div><font face="Calibri, sans-serif">While my (Windows) laptop reports MapServer version:</font></div>
<div><font face="Calibri, sans-serif">MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG SUPPORTS=TILECACHE INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</font></div>
<div><font face="Calibri, sans-serif">&nbsp;</font></div>
<div><font face="Calibri, sans-serif">Any ideas on why this would suddenly happen?</font></div>
<div><font face="Calibri, sans-serif">&nbsp;</font></div>
<div><font face="Calibri, sans-serif">Regards Ian</font></div>
<div><font face="Calibri, sans-serif">______________________<br>

<b>Ian Tidy</b> <br>

<b>GIS Analyst / Developer<br>

</b>Works Asset Department <br>

Napier City Council <br>

Hastings St, Private Bag 6010, Napier, New Zealand <br>

<b>Phone &#43;64-6-835-7579 Ext. 8115</b> <br>

Fax &#43;64-6-834-4195</font></div>
<div><font face="Calibri, sans-serif">Skype:ian.tidy.ncc <br>

<a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=mailto%3aiant%40napier.govt.nz"><font color="#0000FF"><u>mailto:iant@napier.govt.nz</u></font></a><br>

<a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=http%3a%2f%2fwww.napier.govt.nz"><font color="#0000FF"><u>http://www.napier.govt.nz</u></font></a> | <a href="https://owa.napier.govt.nz/owa/iant@napier.govt.nz/redir.aspx?C=09f8d79cadaa42939f897937480990d3&amp;URL=http%3a%2f%2fmaps.napier.govt.nz"><font color="#0000FF"><u>http://maps.napier.govt.nz</u></font></a>
</font></div>
<div><font face="Calibri, sans-serif">&nbsp;</font></div>
<div><font face="Calibri, sans-serif">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
<div><font face="Calibri, sans-serif" size="2">&nbsp;</font></div>
</font>

<HR>
This e-mail message has been scanned for Viruses and Content and cleared by 
<FONT color=#400080><STRONG>MailMarshal </STRONG></FONT>
<HR>

<FONT 
size=1>######################################################################<BR>Attention: 
<BR>This e-mail message and accompanying data may contain information that<BR>is 
confidential and subject to legal privilege. Any information<BR>provided is 
given in good faith. However unless specifically stated to<BR>the contrary, 
Napier City Council accepts no liability for the<BR>content of this e-mail or 
for the consequences of any action taken on<BR>the basis of the information 
provided, unless that information is<BR>subsequently confirmed in writing. If 
you are not the intended recipient,<BR>you are notified that any use, 
dissemination, distribution or copying<BR>of this message or data is prohibited. 
If you received this e-mail<BR>message in error, please notify us immediately 
and erase all copies<BR>of this message and attachments. Thank you. 
</FONT>
</body>
</html>