I will reconvert my data again in PostGIS.<br>I think ogr2or creates a oid automatically.<br>Thanks for helping out<br><br>Steven<br><br><div class="gmail_quote">On Nov 19, 2007 4:01 PM, Marcos Sánchez Provencio <<a href="mailto:marcos@burke.ath.cx">
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 setting debug and see what querys get the database.
<br><br><br>El lun, 19-11-2007 a las 15:31 +0100, Steven De Vriendt escribió:<br><div><div></div><div class="Wj3C7c">> update:<br>> when I use SRID=-1 I get a map in return but I'm still unable to query<br>> it..
<br>><br>> Steven<br>><br>> On Nov 19, 2007 3:26 PM, Steven De Vriendt <<a href="mailto:gisaalter@gmail.com">gisaalter@gmail.com</a>><br>> wrote:<br>> 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
<br>> 'percelen'.<br>> msPOSTGISLayerWhichShapes(): Query error. Error executing<br>> POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY<br>> CURSOR FOR SELECT
<br>> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text<br>> from (SELECT * FROM b_capa_percid) AS foo WHERE the_geom &&<br>> setSRID('BOX3D( 76945.5918856108
<br>> 189996.502536997,91328.1081143621 201805.497460877)'::BOX3D,<br>> 31300 )<br>> -ERROR: Operation on two geometries with different SRIDs<br>><br>><br>> </ServiceException>
<br>> </ServiceExceptionReport><br>><br>><br>><br>> On Nov 19, 2007 3:19 PM, Marcos Sánchez Provencio<br>> <<a href="mailto:marcos@burke.ath.cx">marcos@burke.ath.cx</a>> wrote:
<br>> try<br>> DATA "the_geom from (SELECT * FROM b_capa_percid) as<br>> foo<br>> using srid=31300 using unique gid"<br>><br>><br>
><br>> El lun, 19-11-2007 a las 09:48 +0100, Steven De<br>> Vriendt escribió:<br>><br>> > DATA "the_geom from b_capa_percid"<br>><br>><br>>
<br>><br>><br><br></div></div></blockquote></div><br>