Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
typo + #if 0 for todo code
  • Loading branch information
luipir committed Feb 1, 2019
1 parent a9fcfe9 commit 46ac803
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -1331,15 +1331,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 );
Expand Down

0 comments on commit 46ac803

Please sign in to comment.