Hi List,<br><br>I have a project configured with a custom projection, and in that project, i have two layers - one shp and one postgis layers, both polygons. Both use a custom projection and on first load QGIS use SRS WGS84 latlong (so later i change the srs to custom srs and have projection on the fly disabled - there are some bugs relate to this). (about that wrong SRS - the PostGIS layer has a custom SRS on spatial_ref_sys but QGIS ignores that).<br>

<br>They are equal, the same geometry (i just convert and put the shp on db).<br><br>If i use ogrinfo on the shp, the extent returns correct. I i use "Select st_extent(the_geom) from geotable" (using psql), the extents returns exacts the same that was returned by ogrinfo.<br>

<br>When i put these two layers on QGIS, they  show at right place. No problem.<br>If i see the metadata at QGIS, the shp layer show the correct extent but the postgis layer show extent zero (xMin,yMin 0,0 : xMax,yMax 0,0).<br>

<br>This only troubles if i want use "Zoom to layer extent".<br>Anyone has any clues? Maybe a new bug?<br>I search the bug tracker and find some bugs about projections issues but none (i think) fits that scenario.<br>

<br>Best Regards,<br><br clear="all">Luigi Castro Cardeles<br>