Skip to content

Commit

Permalink
[ams] Tiled layers in non-meters based projections work fine
Browse files Browse the repository at this point in the history
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 298f368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/arcgisrest/qgsamsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 298f368

Please sign in to comment.