Skip to content
Permalink
Browse files

QgsSymbolLayerUtils::decodeSldUom add decode Pixel uom

  • Loading branch information
rldhont authored and Gustry committed Jan 13, 2020
1 parent 92fc1ac commit 4a982a83f411448e4dd0c0b525beb4d629cfb567
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/symbology/qgssymbollayerutils.cpp
@@ -638,6 +638,12 @@ QgsUnitTypes::RenderUnit QgsSymbolLayerUtils::decodeSldUom( const QString &str,
*scaleFactor = 304.8; // from feet to meters
return QgsUnitTypes::RenderMapUnits;
}
else if ( str == QLatin1String( "http://www.opengeospatial.org/se/units/pixel" ) )
{
if ( scaleFactor )
*scaleFactor = 1.0; // from pixels to pixels
return QgsUnitTypes::RenderPixels;
}

// pixel is the SLD default uom. The "standardized rendering pixel
// size" is defined to be 0.28mm x 0.28mm (millimeters).

0 comments on commit 4a982a8

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