Skip to content
Permalink
Browse files

wms provider: also include SCALE parameter for UMN mapserver (followup

  • Loading branch information
jef-n committed Jan 20, 2014
1 parent 85a17c2 commit 9f3e8f48717d6eaaa28b08933c74a7dd9e1510f8
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/wms/qgswmsprovider.cpp
@@ -4719,7 +4719,10 @@ QImage QgsWmsProvider::getLegendGraphic( double scale, bool forceRefresh )
if ( mDpiMode & dpiQGIS )
setQueryItem( url, "DPI", QString::number( defaultLegendGraphicResolution ) );
if ( mDpiMode & dpiUMN )
{
setQueryItem( url, "MAP_RESOLUTION", QString::number( defaultLegendGraphicResolution ) );
setQueryItem( url, "SCALE", QString::number( scale, 'f' ) );
}
if ( mDpiMode & dpiGeoServer )
{
setQueryItem( url, "FORMAT_OPTIONS", QString( "dpi:%1" ).arg( defaultLegendGraphicResolution ) );

0 comments on commit 9f3e8f4

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