Hi Mapserver List!<br><br>I'm wondering if any of you can help me with a problem I'm having with GeoMoose, using Mapserver. I am using the latest version of Geomoose (2.4RC1) and Mapserver 5.6.3 (packaged for Fedora 14).<br>
<br>My issue is when I carry out a query in Geomoose. I have set everything there up according to the docs, and submitted info to the mailing list, so hopefully it's all correct. From what I can gather, the problem is when the php script calls:<br>
<br>$queryLayer->queryByRect($queryLayer->getExtent());<br><br>In the Apache log, this returns <br><br>msPostGISLayerResultsGetShape: Assertion `layer->layerinfo != ((void *)0)' failed.<br><br>and the mapserver log says:<br>
<br>getSymbol(): Symbol definition error. Parsing error near (per_ttw_lu):(line 320) [per_ttw_lu is the name of my field. It is definitely there as I use it in an identify query, and I can map the Mapserver layer fine]<br>
<br>I'm convinced this is something to do with the template - GeoMoose does something non-standard with Mapserver templates, and the template is specified in the METADATA for the layer. But, from the debugging I've done in PHP, the template seems to be properly specified - it is specified using itemquery itemquery_template.html in the METADATA tag. I'm not sure I've got the right markup in the template though - currently it is:<br>
<br><!-- MapServer Template --><br><tr bgcolor="#DEE5EB"><br>[errmsg]<br><tr/><br><tr><br><td colspan="2"><b><u>Output Areas</u></b></tr><br>
<tr><br><td align="right"><b>Census Code:</b></td><br><td>[census_code]</td><br></tr><br><tr><br><td align="right"><b>Percentage travel by LU:</b></td><br>
<td>[per_ttw_lu]</td><br></tr><br><tr><br><td> </td><br><td> </td><br></tr><br><br>Can anyone help me with this, or help me to debug it better.<br><br>
Thanks<br><br>Steve<br><br>