Skip to content
Permalink
Browse files

[WFS client] Fix GetFeature BBOX in WFS 1.1 when the GetCapabilies CR…

…S is urn:ogc:def:crs:OGC:1.3:CRS84 (refs #19571)
  • Loading branch information
rouault committed Oct 14, 2018
1 parent 0816a29 commit f0bb08de3c90430267515f4a3f6aeaf397f5ea52
Showing with 13 additions and 3 deletions.
  1. +13 −3 src/providers/wfs/qgswfsfeatureiterator.cpp
@@ -329,10 +329,20 @@ QUrl QgsWFSFeatureDownloader::buildURL( qint64 startIndex, int maxFeatures, bool
else if ( !mShared->mRect.isNull() )
{
bool invertAxis = false;
if ( !mShared->mWFSVersion.startsWith( QLatin1String( "1.0" ) ) && !mShared->mURI.ignoreAxisOrientation() &&
mShared->mSourceCRS.hasAxisInverted() )
if ( !mShared->mWFSVersion.startsWith( QLatin1String( "1.0" ) ) &&
!mShared->mURI.ignoreAxisOrientation() )
{
invertAxis = true;
// This is a bit nasty, but if the server reports OGC::CRS84
// mSourceCRS will report hasAxisInverted() == false, but srsName()
// will be urn:ogc:def:crs:EPSG::4326, so axis inversion is needed...
if ( mShared->srsName() == QLatin1String( "urn:ogc:def:crs:EPSG::4326" ) )
{
invertAxis = true;
}
else if ( mShared->mSourceCRS.hasAxisInverted() )
{
invertAxis = true;
}
}
if ( mShared->mURI.invertAxisOrientation() )
{

0 comments on commit f0bb08d

Please sign in to comment.
You can’t perform that action at this time.