I think I found the problem,  in my PHP script that processes the Query Results 
was the line '$oLayer->Close()'.  I am guessing that this now closes the layer. 
 I have commented it out and the application seems to be working.
______________________
Ian Tidy
GIS Analyst / Developer
Works Asset Department
Napier City Council
mailto:[email protected]<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=mailto%3aiant%40napier.govt.nz>
http://www.napier.govt.nz<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=http%3a%2f%2fwww.napier.govt.nz>
 | 
http://maps.napier.govt.nz<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=http%3a%2f%2fmaps.napier.govt.nz>


_____________________________________________
From: Ian Tidy
Sent: Monday, 10 May 2010 9:40 p.m.
To: [email protected]
Cc: Ian Tidy
Subject: RE: PHP/MapScript - Error - msLayerGetShape() - URGENT


I have worked out that this happens for layers I am drawing after querying 
them.  But I don't understand why...
______________________
Ian Tidy
GIS Analyst / Developer
Works Asset Department
Napier City Council
mailto:[email protected]<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=mailto%3aiant%40napier.govt.nz>
http://www.napier.govt.nz<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=http%3a%2f%2fwww.napier.govt.nz>
 | 
http://maps.napier.govt.nz<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=http%3a%2f%2fmaps.napier.govt.nz>


_____________________________________________
From: Ian Tidy
Sent: Monday, 10 May 2010 9:20 p.m.
To: [email protected]
Cc: Ian Tidy
Subject: PHP/MapScript - Error - msLayerGetShape() - URGENT


I have just upgraded from Ubuntu Linux 9.10 to 10.04 LTS and I am now getting 
the following error:
[Mon May 10 21:09:50 2010].196000 msLayerGetShape(): Shapefile error. Shapefile 
layer has not been opened.
[Mon May 10 21:09:50 2010].196000 msDrawMap(): Image handling error. Failed to 
draw layer named 'ncspropinfo'.

Everything was working until I upgraded to OS (and MapServer).  I have been 
able to replicate the problem on a Windows machine using MS4W 3 Beta.

My Linux server reports MapServer version:
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

While my (Windows) laptop reports MapServer version:
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

Any ideas on why this would suddenly happen?

Regards Ian
______________________
Ian Tidy
GIS Analyst / Developer
Works Asset Department
Napier City Council
Hastings St, Private Bag 6010, Napier, New Zealand
Phone +64-6-835-7579 Ext. 8115
Fax +64-6-834-4195
Skype:ian.tidy.ncc
mailto:[email protected]<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=mailto%3aiant%40napier.govt.nz>
http://www.napier.govt.nz<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=http%3a%2f%2fwww.napier.govt.nz>
 | 
http://maps.napier.govt.nz<https://owa.napier.govt.nz/owa/[email protected]/redir.aspx?C=09f8d79cadaa42939f897937480990d3&URL=http%3a%2f%2fmaps.napier.govt.nz>





#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#####################################################################################

######################################################################
Attention: 
This e-mail message and accompanying data may contain information that
is confidential and subject to legal privilege. Any information
provided is given in good faith. However unless specifically stated to
the contrary, Napier City Council accepts no liability for the
content of this e-mail or for the consequences of any action taken on
the basis of the information provided, unless that information is
subsequently confirmed in writing. If you are not the intended recipient,
you are notified that any use, dissemination, distribution or copying
of this message or data is prohibited. If you received this e-mail
message in error, please notify us immediately and erase all copies
of this message and attachments. Thank you.
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to