[Qgis-developer] Problem with Postgis 2.0 Views and picking
(info-tool)
Andreas Neumann
a.neumann at carto.net
Thu Jan 19 04:05:07 EST 2012
Hi Strk, Jürgen and others,
I see that this is already fixed in trunk now - thank you for the very
quick fix!
Andreas
On 01/18/2012 09:13 PM, Sandro Santilli wrote:
> 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" )
More information about the Qgis-developer
mailing list