How can I see what SRID the data is using ? I&#39;m quite new to all this...<br><br>Steven<br><br><div class="gmail_quote">On Nov 19, 2007 3:41 PM, Marcos Sánchez Provencio &lt;<a href="mailto:marcos@burke.ath.cx">marcos@burke.ath.cx
</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Try using the srid your data is stored in instead of 31300. You might<br>
use the function getsrid<br><br>SELECT getsrid(the_geom) from b_capa_percid limit 1;<br><br><br>El lun, 19-11-2007 a las 15:26 +0100, Steven De Vriendt escribió:<br><div><div></div><div class="Wj3C7c">&gt; Marcos,<br>&gt;
<br>&gt; When I try your suggestion Mapserver returns:<br>&gt;<br>&gt; −<br>&gt; &nbsp; &nbsp; &lt;ServiceExceptionReport version=&quot;1.1.0&quot;&gt;<br>&gt; −<br>&gt; &nbsp; &nbsp; &lt;ServiceException&gt;<br>&gt;<br>&gt; msDrawMap(): Image handling error. Failed to draw layer named
<br>&gt; &#39;percelen&#39;.<br>&gt; msPOSTGISLayerWhichShapes(): Query error. Error executing POSTGIS SQL<br>&gt; statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT<br>&gt; asbinary(force_collection(force_2d(the_geom)),&#39;NDR&#39;),gid::text from
<br>&gt; (SELECT * FROM b_capa_percid) AS foo WHERE the_geom &amp;&amp;<br>&gt; setSRID(&#39;BOX3D( 76945.5918856108 189996.502536997,91328.1081143621<br>&gt; 201805.497460877)&#39;::BOX3D, 31300 )<br>&gt; -ERROR: &nbsp;Operation on two geometries with different SRIDs
<br>&gt;<br>&gt;<br>&gt; &lt;/ServiceException&gt;<br>&gt; &lt;/ServiceExceptionReport&gt;<br>&gt;<br>&gt; On Nov 19, 2007 3:19 PM, Marcos Sánchez Provencio<br>&gt; &lt;<a href="mailto:marcos@burke.ath.cx">marcos@burke.ath.cx
</a>&gt; wrote:<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; try<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; DATA &quot;the_geom from (SELECT * FROM b_capa_percid) as foo<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; using srid=31300 using unique gid&quot;<br>&gt;<br>&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; El lun, 19-11-2007 a las 09:48 +0100, Steven De Vriendt
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; escribió:<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; DATA &quot;the_geom from b_capa_percid&quot;<br>&gt;<br>&gt;<br>&gt;<br><br></div></div></blockquote></div><br>