i replaced all the function fe_bbox_layer() in fe_spatial_ops.c by this :<br><br>   /*c*/ srid = ows_srs_get_srid_from_layer(o, typename);<br>   /*c*/ buffer_add_str(sql, &quot; (SELECT ST_Transform(&quot;);<br>   /*c*/ buffer_copy(sql, envelope);<br>
   /*c*/ buffer_add_str(sql,&quot;, &quot;);<br>   /*c*/ buffer_add_int(sql,srid);<br>   /*c*/ buffer_add_str(sql, &quot;) as &quot;);<br>   /*c*/ buffer_add(sql,&#39;&quot;&#39;);<br>   /*c*/ buffer_add_str(sql,&quot;the_geom&quot;);<br>
   /*c*/ buffer_add(sql,&#39;&quot;&#39;);<br>   /*c*/ buffer_add_str(sql, &quot;) as B ON ST_Intersects(A.&quot;);<br>   /*c*/ buffer_add(sql, &#39;&quot;&#39;);<br>   /*c*/ buffer_copy(sql, propertyname);<br>   /*c*/ buffer_add(sql, &#39;&quot;&#39;);<br>
   /*c*/ buffer_add_str(sql,&quot;, B.the_geom)&quot;);<br><br>and switch where for INNER JOIN in wfs_get_feature.c, function wfs_retrieve_sql_request_list() : <br><br>line 598     /* buffer_add_str(where, &quot; WHERE &quot;);*/<br>
line 599      /*c*/buffer_add_str(where, &quot; as A INNER JOIN &quot;);<br><br>it&#39;s working for my request in my application but it is working for all requests, i can&#39;t say <br>i did not done many type of request<br>
<br>i think my variable &#39;srid&#39; don&#39;t get the good srid. <br>you need the srid of the table and i understand ows_srs_get_srid_from_layer() return the layer&#39;s srid. <br>there&#39;s a way to get the table&#39;s srid in fe_bbox_layer() ?<br>
<br>Marc-André Trottier<br>