File tree Expand file tree Collapse file tree 5 files changed +25
-2
lines changed
tests/testdata/qgis_server Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,12 @@ Returns the path to the donors file.
210
210
:rtype: str
211
211
%End
212
212
213
+ static QString serverResourcesPath();
214
+ %Docstring
215
+ Returns the path to the server resources directory.
216
+ :rtype: str
217
+ %End
218
+
213
219
static QString translatorsFilePath();
214
220
%Docstring
215
221
Returns the path to the sponsors file.
Original file line number Diff line number Diff line change @@ -846,6 +846,11 @@ QString QgsApplication::defaultThemesFolder()
846
846
return ABISYM ( mPkgDataPath ) + QStringLiteral ( " /resources/themes" );
847
847
}
848
848
849
+ QString QgsApplication::serverResourcesPath ()
850
+ {
851
+ return ABISYM ( mPkgDataPath ) + QStringLiteral ( " /resources/server/" );
852
+ }
853
+
849
854
QString QgsApplication::libraryPath ()
850
855
{
851
856
return ABISYM ( mLibraryPath );
Original file line number Diff line number Diff line change @@ -231,6 +231,9 @@ class CORE_EXPORT QgsApplication : public QApplication
231
231
// ! Returns the path to the donors file.
232
232
static QString donorsFilePath ();
233
233
234
+ // ! Returns the path to the server resources directory.
235
+ static QString serverResourcesPath ();
236
+
234
237
/* *
235
238
* Returns the path to the sponsors file.
236
239
*/
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ namespace QgsWms
46
46
47
47
QDomDocument xsdDoc;
48
48
49
- QDir fcgiBinDir = QFileInfo ( QCoreApplication::applicationFilePath () ).absoluteDir ();
50
- QFileInfo xsdFileInfo ( fcgiBinDir , QStringLiteral ( " schemaExtension.xsd" ) );
49
+ QDir resourcesDir = QFileInfo ( QgsApplication::serverResourcesPath () ).absoluteDir ();
50
+ QFileInfo xsdFileInfo ( resourcesDir , QStringLiteral ( " schemaExtension.xsd" ) );
51
51
52
52
if ( !xsdFileInfo.exists () )
53
53
{
Original file line number Diff line number Diff line change
1
+ *****
2
+ Content-Type: text/xml; charset=utf-8
3
+
4
+ <?xml version='1.0' encoding='UTF-8'?>
5
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.qgis.org/wms" elementFormDefault="qualified" version="1.0.0">
6
+ <import xmlns="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/wms" schemaLocation="http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd"/>
7
+ <element xmlns="http://www.w3.org/2001/XMLSchema" name="GetPrint" substitutionGroup="wms:_ExtendedOperation" type="wms:OperationType"/>
8
+ <element xmlns="http://www.w3.org/2001/XMLSchema" name="GetStyles" substitutionGroup="wms:_ExtendedOperation" type="wms:OperationType"/>
9
+ </schema>
You can’t perform that action at this time.
0 commit comments