update: <br>when I use SRID=-1 I get a map in return but I'm still unable to query it..<br><br>Steven<br><br><div class="gmail_quote">On Nov 19, 2007 3:26 PM, Steven De Vriendt <<a href="mailto:gisaalter@gmail.com">
gisaalter@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Marcos,<br><br>When I try your suggestion Mapserver returns:
<br><br>−<br> <ServiceExceptionReport version="1.1.0"><br>−<br> <ServiceException><br><br>msDrawMap(): Image handling error. Failed to draw layer named 'percelen'.
<br>msPOSTGISLayerWhichShapes(): Query error. Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (SELECT * FROM b_capa_percid) AS foo WHERE the_geom && setSRID('BOX3D(
76945.5918856108 189996.502536997,91328.1081143621 201805.497460877)'::BOX3D, 31300 )<br>-ERROR: Operation on two geometries with different SRIDs<br><br><br></ServiceException><br></ServiceExceptionReport>
<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Nov 19, 2007 3:19 PM, Marcos Sánchez Provencio <<a href="mailto:marcos@burke.ath.cx" target="_blank">marcos@burke.ath.cx</a>> 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<br>DATA "the_geom from (SELECT * FROM b_capa_percid) as foo<br>using srid=31300 using unique gid"<br><br><br><br>El lun, 19-11-2007 a las 09:48 +0100, Steven De Vriendt escribió:<br><div><div></div><div>
> DATA "the_geom from b_capa_percid"<br><br></div></div></blockquote></div><br>
</div></div></blockquote></div><br>