Skip to content
Permalink
Browse files

typo + #if 0 for todo code

  • Loading branch information
luipir committed Feb 1, 2019
1 parent 53ec2cf commit 24a74d1a921d4a87042507b92be018993f88f8c6
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/core/raster/qgsrasterlayer.cpp
@@ -1267,15 +1267,17 @@ bool QgsRasterLayer::writeSld( QDomNode &node, QDomDocument &doc, QString &error
QDomElement featureTypeStyleElem = doc.createElement( QStringLiteral( "sld:FeatureTypeStyle" ) );
userStyleElem.appendChild( featureTypeStyleElem );

// TODO: readd this tag if there is a way to fill it's value with the named style
// by default Nam under sld:FeatureTypeStyle can have 0 occurrences
#if 0
// TODO: Is there a way to fill it's value with the named style?
// by default <sld:Name> under <sld:FeatureTypeStyle> can have 0 occurrences
// the same happen for tags:
// sld:Title
// sld:Abstract
// sld:FeatureTypeName
// sld:SemanticTypeIdentifier
//QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
//featureTypeStyleElem.appendChild( typeStyleNameElem );
QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
featureTypeStyleElem.appendChild( typeStyleNameElem );
#endif

QDomElement typeStyleRuleElem = doc.createElement( QStringLiteral( "sld:Rule" ) );
featureTypeStyleElem.appendChild( typeStyleRuleElem );

0 comments on commit 24a74d1

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