Skip to content
Permalink
Browse files
[ams] Tiled layers in non-meters based projections work fine
Tested on a variety of US state plane layers and WGS84 tiled sources
  • Loading branch information
nyalldawson committed Aug 23, 2021
1 parent 1b8be09 commit 298f36876076284582ffd98c1700afebfe192f65
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/arcgisrest/qgsamsprovider.cpp
@@ -250,7 +250,7 @@ QgsAmsProvider::QgsAmsProvider( const QString &uri, const ProviderOptions &optio
mLayerMetadata.setExtent( metadataExtent );
mLayerMetadata.setCrs( mCrs );

mTiled = mServiceInfo.value( QStringLiteral( "singleFusedMapCache" ) ).toBool() && mCrs.mapUnits() == QgsUnitTypes::DistanceMeters;
mTiled = mServiceInfo.value( QStringLiteral( "singleFusedMapCache" ) ).toBool();
if ( dataSource.param( QStringLiteral( "tiled" ) ).toLower() == "false" || dataSource.param( QStringLiteral( "tiled" ) ) == "0" )
{
mTiled = false;

0 comments on commit 298f368

Please sign in to comment.