On Wed, Jan 18, 2012 at 09:11:35PM +0100, Sandro Santilli wrote:
> On Wed, Jan 18, 2012 at 08:37:36PM +0100, Andreas Neumann wrote:
>
> > so the error is easy to detect: st_makeenvelope() uses an SRID of 0 when
> > it should use 21781 which I specified when loading the view.
> >
> > I hope this problem will be relatively easy to fix?
>
> Sounds so.
Please try the following patch:
diff --git a/src/providers/postgres/qgspostgresprovider.cpp
b/src/providers/postgres/qgspostgresprovider.cpp
index 3d4443f..e5fbc21 100644
--- a/src/providers/postgres/qgspostgresprovider.cpp
+++ b/src/providers/postgres/qgspostgresprovider.cpp
@@ -547,7 +547,7 @@ void QgsPostgresProvider::select( QgsAttributeList
fetchAttributes, QgsRectangle
.arg( rect.yMinimum() )
.arg( rect.xMaximum() )
.arg( rect.yMaximum() )
- .arg( mDetectedSrid );
+ .arg( mRequestedSrid );
}
whereClause = QString( "%1 && %2" )
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer