@@ -72,36 +72,36 @@ void printRequestInfos()
72
72
{
73
73
#ifdef QGSMSDEBUG
74
74
// print out some infos about the request
75
- QgsMSDebugMsg ( " ************************new request**********************" )
75
+ QgsMSDebugMsg ( " ************************new request**********************" );
76
76
QgsMSDebugMsg ( QDateTime::currentDateTime ().toString ( " yyyy-MM-dd hh:mm:ss" ) );
77
77
78
78
if ( getenv ( " REMOTE_ADDR" ) != NULL )
79
79
{
80
- QgsMSDebugMsg ( " remote ip: " + QString ( getenv ( " REMOTE_ADDR" ) ) )
80
+ QgsMSDebugMsg ( " remote ip: " + QString ( getenv ( " REMOTE_ADDR" ) ) );
81
81
}
82
82
if ( getenv ( " REMOTE_HOST" ) != NULL )
83
83
{
84
- QgsMSDebugMsg ( " remote host: " + QString ( getenv ( " REMOTE_HOST" ) ) )
84
+ QgsMSDebugMsg ( " remote host: " + QString ( getenv ( " REMOTE_HOST" ) ) );
85
85
}
86
86
if ( getenv ( " REMOTE_USER" ) != NULL )
87
87
{
88
- QgsMSDebugMsg ( " remote user: " + QString ( getenv ( " REMOTE_USER" ) ) )
88
+ QgsMSDebugMsg ( " remote user: " + QString ( getenv ( " REMOTE_USER" ) ) );
89
89
}
90
90
if ( getenv ( " REMOTE_IDENT" ) != NULL )
91
91
{
92
- QgsMSDebugMsg ( " REMOTE_IDENT: " + QString ( getenv ( " REMOTE_IDENT" ) ) )
92
+ QgsMSDebugMsg ( " REMOTE_IDENT: " + QString ( getenv ( " REMOTE_IDENT" ) ) );
93
93
}
94
94
if ( getenv ( " CONTENT_TYPE" ) != NULL )
95
95
{
96
- QgsMSDebugMsg ( " CONTENT_TYPE: " + QString ( getenv ( " CONTENT_TYPE" ) ) )
96
+ QgsMSDebugMsg ( " CONTENT_TYPE: " + QString ( getenv ( " CONTENT_TYPE" ) ) );
97
97
}
98
98
if ( getenv ( " AUTH_TYPE" ) != NULL )
99
99
{
100
- QgsMSDebugMsg ( " AUTH_TYPE: " + QString ( getenv ( " AUTH_TYPE" ) ) )
100
+ QgsMSDebugMsg ( " AUTH_TYPE: " + QString ( getenv ( " AUTH_TYPE" ) ) );
101
101
}
102
102
if ( getenv ( " HTTP_USER_AGENT" ) != NULL )
103
103
{
104
- QgsMSDebugMsg ( " HTTP_USER_AGENT: " + QString ( getenv ( " HTTP_USER_AGENT" ) ) )
104
+ QgsMSDebugMsg ( " HTTP_USER_AGENT: " + QString ( getenv ( " HTTP_USER_AGENT" ) ) );
105
105
}
106
106
#endif // QGSMSDEBUG
107
107
}
@@ -154,12 +154,12 @@ int main( int argc, char * argv[] )
154
154
// write to qgis_wms_server.log in application directory
155
155
QgsMapServerLogger::instance ()->setLogFilePath ( qgsapp.applicationDirPath () + " /qgis_wms_server.log" );
156
156
#endif
157
- QgsMSDebugMsg ( " Prefix PATH: " + QgsApplication::prefixPath () )
158
- QgsMSDebugMsg ( " Plugin PATH: " + QgsApplication::pluginPath () )
159
- QgsMSDebugMsg ( " PkgData PATH: " + QgsApplication::pkgDataPath () )
160
- QgsMSDebugMsg ( " User DB PATH: " + QgsApplication::qgisUserDbFilePath () )
157
+ QgsMSDebugMsg ( " Prefix PATH: " + QgsApplication::prefixPath () );
158
+ QgsMSDebugMsg ( " Plugin PATH: " + QgsApplication::pluginPath () );
159
+ QgsMSDebugMsg ( " PkgData PATH: " + QgsApplication::pkgDataPath () );
160
+ QgsMSDebugMsg ( " User DB PATH: " + QgsApplication::qgisUserDbFilePath () );
161
161
162
- QgsMSDebugMsg ( qgsapp.applicationDirPath () + " /qgis_wms_server.log" )
162
+ QgsMSDebugMsg ( qgsapp.applicationDirPath () + " /qgis_wms_server.log" );
163
163
164
164
// create config cache and search for config files in the current directory.
165
165
// These configurations are used if no mapfile parameter is present in the request
@@ -194,18 +194,18 @@ int main( int argc, char * argv[] )
194
194
{
195
195
if ( strcmp ( requestMethod, " POST" ) == 0 )
196
196
{
197
- QgsMSDebugMsg ( " Creating QgsSOAPRequestHandler" )
197
+ QgsMSDebugMsg ( " Creating QgsSOAPRequestHandler" );
198
198
theRequestHandler = new QgsSOAPRequestHandler ();
199
199
}
200
200
else
201
201
{
202
- QgsMSDebugMsg ( " Creating QgsGetRequestHandler" )
202
+ QgsMSDebugMsg ( " Creating QgsGetRequestHandler" );
203
203
theRequestHandler = new QgsGetRequestHandler ();
204
204
}
205
205
}
206
206
else
207
207
{
208
- QgsMSDebugMsg ( " Creating QgsGetRequestHandler" )
208
+ QgsMSDebugMsg ( " Creating QgsGetRequestHandler" );
209
209
theRequestHandler = new QgsGetRequestHandler ();
210
210
}
211
211
@@ -217,7 +217,7 @@ int main( int argc, char * argv[] )
217
217
}
218
218
catch ( QgsMapServiceException& e )
219
219
{
220
- QgsMSDebugMsg ( " An exception was thrown during input parsing" )
220
+ QgsMSDebugMsg ( " An exception was thrown during input parsing" );
221
221
theRequestHandler->sendServiceException ( e );
222
222
continue ;
223
223
}
@@ -246,7 +246,7 @@ int main( int argc, char * argv[] )
246
246
if ( serviceIt == parameterMap.end () )
247
247
{
248
248
// tell the user that service parameter is mandatory
249
- QgsMSDebugMsg ( " unable to find 'SERVICE' parameter, exiting..." )
249
+ QgsMSDebugMsg ( " unable to find 'SERVICE' parameter, exiting..." );
250
250
theRequestHandler->sendServiceException ( QgsMapServiceException ( " ServiceNotSpecified" , " Service not specified. The SERVICE parameter is mandatory" ) );
251
251
delete theRequestHandler;
252
252
continue ;
@@ -271,7 +271,7 @@ int main( int argc, char * argv[] )
271
271
if ( requestIt == parameterMap.end () )
272
272
{
273
273
// do some error handling
274
- QgsMSDebugMsg ( " unable to find 'REQUEST' parameter, exiting..." )
274
+ QgsMSDebugMsg ( " unable to find 'REQUEST' parameter, exiting..." );
275
275
theRequestHandler->sendServiceException ( QgsMapServiceException ( " OperationNotSupported" , " Please check the value of the REQUEST parameter" ) );
276
276
delete theRequestHandler;
277
277
delete theServer;
@@ -292,7 +292,7 @@ int main( int argc, char * argv[] )
292
292
delete theServer;
293
293
continue ;
294
294
}
295
- QgsMSDebugMsg ( " sending GetCapabilities response" )
295
+ QgsMSDebugMsg ( " sending GetCapabilities response" );
296
296
theRequestHandler->sendGetCapabilitiesResponse ( capabilitiesDocument );
297
297
delete theRequestHandler;
298
298
delete theServer;
@@ -307,7 +307,7 @@ int main( int argc, char * argv[] )
307
307
}
308
308
catch ( QgsMapServiceException& ex )
309
309
{
310
- QgsMSDebugMsg ( " Catched exception during GetMap request" )
310
+ QgsMSDebugMsg ( " Catched exception during GetMap request" );
311
311
theRequestHandler->sendServiceException ( ex );
312
312
delete theRequestHandler;
313
313
delete theServer;
@@ -316,13 +316,13 @@ int main( int argc, char * argv[] )
316
316
317
317
if ( result )
318
318
{
319
- QgsMSDebugMsg ( " Sending GetMap response" )
319
+ QgsMSDebugMsg ( " Sending GetMap response" );
320
320
theRequestHandler->sendGetMapResponse ( serviceIt->second , result );
321
321
}
322
322
else
323
323
{
324
324
// do some error handling
325
- QgsMSDebugMsg ( " result image is 0" )
325
+ QgsMSDebugMsg ( " result image is 0" );
326
326
}
327
327
delete result;
328
328
delete theRequestHandler;
@@ -392,14 +392,14 @@ int main( int argc, char * argv[] )
392
392
393
393
if ( result )
394
394
{
395
- QgsMSDebugMsg ( " Sending GetLegendGraphics response" )
395
+ QgsMSDebugMsg ( " Sending GetLegendGraphics response" );
396
396
// sending is the same for GetMap and GetLegendGraphics
397
397
theRequestHandler->sendGetMapResponse ( serviceIt->second , result );
398
398
}
399
399
else
400
400
{
401
401
// do some error handling
402
- QgsMSDebugMsg ( " result image is 0" )
402
+ QgsMSDebugMsg ( " result image is 0" );
403
403
}
404
404
delete result;
405
405
delete theRequestHandler;
0 commit comments