mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix OGC test getcapabilities:validate-using-schemaLocation
This commit is contained in:
parent
8759e7cd03
commit
1150076633
@ -20,7 +20,9 @@
|
||||
***************************************************************************/
|
||||
#include "qgswmsutils.h"
|
||||
#include "qgswmsgetschemaextension.h"
|
||||
#include "qgsapplication.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
|
||||
namespace QgsWms
|
||||
@ -44,7 +46,9 @@ namespace QgsWms
|
||||
|
||||
QDomDocument xsdDoc;
|
||||
|
||||
QFileInfo xsdFileInfo( QStringLiteral( "schemaExtension.xsd" ) );
|
||||
QDir fcgiBinDir = QFileInfo( QCoreApplication::applicationFilePath() ).absoluteDir();
|
||||
QFileInfo xsdFileInfo( fcgiBinDir, QStringLiteral( "schemaExtension.xsd" ) );
|
||||
|
||||
if ( !xsdFileInfo.exists() )
|
||||
{
|
||||
QgsMessageLog::logMessage( QStringLiteral( "Error, xsd file 'schemaExtension.xsd' does not exist" ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user