Skip to content

Commit

Permalink
[WFS client] Fix GetFeature BBOX in WFS 1.1 when the GetCapabilies CR…
Browse files Browse the repository at this point in the history
…S is urn:ogc:def:crs:OGC:1.3:CRS84 (refs #19571)
  • Loading branch information
rouault committed Oct 14, 2018
1 parent 0816a29 commit f0bb08d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/providers/wfs/qgswfsfeatureiterator.cpp
Expand Up @@ -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() )
{
Expand Down

0 comments on commit f0bb08d

Please sign in to comment.