Skip to content

Commit

Permalink
added debugging info to mapserver while trying to resolve blank rende…
Browse files Browse the repository at this point in the history
…ring issues
  • Loading branch information
timlinux committed Jun 10, 2011
1 parent 83925f8 commit fd23573
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mapserver/qgswmsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@ QImage* QgsWMSServer::initializeRendering( QStringList& layersList, QStringList&
{
return 0;
}
QFile file("/tmp/wmslog.txt");
file.open(QIODevice::Append);
file.write( "initialiseRendering parser initial checks ok\n" );

//pass external GML to the SLD parser.
std::map<QString, QString>::const_iterator gmlIt = mParameterMap.find( "GML" );
Expand All @@ -720,6 +723,7 @@ QImage* QgsWMSServer::initializeRendering( QStringList& layersList, QStringList&
delete gmlDoc;
}
}
file.write( "initialiseRendering parser gml checks ok\n" );

QImage* theImage = createImage();
if ( !theImage )
Expand All @@ -732,6 +736,7 @@ QImage* QgsWMSServer::initializeRendering( QStringList& layersList, QStringList&
delete theImage;
return 0;
}
file.write( "initialiseRendering parser secondary checks ok\n" );
mMapRenderer->setLabelingEngine( new QgsPalLabeling() );

//find out the current scale denominater and set it to the SLD parser
Expand All @@ -743,6 +748,9 @@ QImage* QgsWMSServer::initializeRendering( QStringList& layersList, QStringList&
layerIdList.clear();
layerIdList = layerSet( layersList, stylesList, mMapRenderer->destinationCrs() );
mMapRenderer->setLayerSet( layerIdList );
file.write( "initialiseRendering done\n" );
file.write( mapExtent.toString() );
file.close();
return theImage;
}

Expand Down

0 comments on commit fd23573

Please sign in to comment.