Hi! <br>why is it tinyows is doiing this before the main request on GetFeature : <br><br>SELECT ST_xmin(g.extent), ST_ymin(g.extent), ST_xmax(g.extent), ST_ymax(g.extent) FROM (SELECT ST_Extent(foo.the_geom) as extent FROM ( (SELECT ST_Transform("geom_p"::geometry, 900913) AS "the_geom" FROM admgeo1."zztiny_glissement_p" WHERE (_ST_Intersects(ST_Transform("geom_p",900913),'SRID=900913;POLYGON((-7991157.138672 5911315.758475,-7991157.138672 5920182.453754,-7979538.710375 5920182.453754,-7979538.710375 5911315.758475,-7991157.138672 5911315.758475))'::geometry) AND ST_Transform("geom_p",900913) && 'SRID=900913;POLYGON((-7991157.138672 5911315.758475,-7991157.138672 5920182.453754,-7979538.710375 5920182.453754,-7979538.710375 5911315.758475,-7991157.138672 5911315.758475))'::geometry)) ) AS foo) AS g<br>
<br>i switched the st_transform on the polygon in fe_spatial_ops.c (fe_bbox_layer()) but no significant gain <br><br>but something like this was very quick : <br><br>SELECT "ogc_fid",<br>ST_AsGML(2, ST_Transform("geom_p"::geometry,900913),0,0) AS "geom_p" ,"statut_maj","seq_no_civ","no_civq","odospec","munnom","co_postl","commentaire",<br>
"date_maj","role" <br>FROM admgeo1."zz_aq_msp_adresse_geo_modif3" as A INNER JOIN (SELECT ST_Transform('SRID=900913;POLYGON((-7989840.391427 5910916.852734,-7989840.391427 5910947.905276,-7989784.257985 5910947.905276,-7989784.257985 5910916.852734,-7989840.391427 5910916.852734))'::geometry,900913) as "the_geom") as B ON ST_Intersects(A.geom_p, B.the_geom) <br>
<br>i'm trying to do the switch (where clause to inner join)<br><br>Marc-André Trottier <br><br><br><br><br><br><br>