Skip to content
Permalink
Browse files
sld parser in qgis server is still on old symbology
  • Loading branch information
marco committed Nov 12, 2011
1 parent 0bb43fb commit 55337b3bbcfc922fdb5932fb749c95a594d2a31b
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/mapserver/qgssldparser.cpp
@@ -276,6 +276,7 @@ QList<QgsMapLayer*> QgsSLDParser::mapLayerFromStyle( const QString& layerName, c
{
QgsRenderer* r = rendererFromUserStyle( userStyleElement, v );
v->setRenderer( r );
v->setUsingRendererV2( false );
labelSettingsFromUserStyle( userStyleElement, v );
#ifdef DIAGRAMSERVER
overlaysFromUserStyle( userStyleElement, v );
@@ -399,6 +400,7 @@ QList<QgsMapLayer*> QgsSLDParser::mapLayerFromStyle( const QString& layerName, c
return resultList;
}
theVectorLayer->setRenderer( theRenderer );
theVectorLayer->setUsingRendererV2( false );
QgsDebugMsg( "Returning the vectorlayer" );
setOpacityForLayer( userLayerElement, theVectorLayer );
resultList.push_back( theVectorLayer );

0 comments on commit 55337b3

Please sign in to comment.