Hi Mapserver List!<br><br>I&#39;m wondering if any of you can help me with a problem I&#39;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&#39;s all correct. From what I can gather, the problem is when the php script calls:<br>
<br>$queryLayer-&gt;queryByRect($queryLayer-&gt;getExtent());<br><br>In the Apache log, this returns <br><br>msPostGISLayerResultsGetShape: Assertion `layer-&gt;layerinfo != ((void *)0)&#39; 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&#39;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&#39;ve done in PHP, the template seems to be properly specified - it is specified using  itemquery itemquery_template.html in the METADATA tag. I&#39;m not sure I&#39;ve got the right markup in the template though - currently it is:<br>
<br>&lt;!-- MapServer Template --&gt;<br>&lt;tr bgcolor=&quot;#DEE5EB&quot;&gt;<br>[errmsg]<br>&lt;tr/&gt;<br>&lt;tr&gt;<br>&lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;&lt;u&gt;Output Areas&lt;/u&gt;&lt;/b&gt;&lt;/tr&gt;<br>
&lt;tr&gt;<br>&lt;td align=&quot;right&quot;&gt;&lt;b&gt;Census Code:&lt;/b&gt;&lt;/td&gt;<br>&lt;td&gt;[census_code]&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br>&lt;td align=&quot;right&quot;&gt;&lt;b&gt;Percentage travel by LU:&lt;/b&gt;&lt;/td&gt;<br>
&lt;td&gt;[per_ttw_lu]&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br>&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br>&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br>&lt;/tr&gt;<br><br>Can anyone help me with this, or help me to debug it better.<br><br>
Thanks<br><br>Steve<br><br>