File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,24 @@ static PJ* getBaseGeographicCRS(projectionObj* in)
231
231
return NULL ;
232
232
}
233
233
234
+ /************************************************************************/
235
+ /* msProjErrorLogger() */
236
+ /************************************************************************/
237
+
238
+ static void msProjErrorLogger (void * user_data ,
239
+ int level , const char * message )
240
+ {
241
+ (void )user_data ;
242
+ if ( level == PJ_LOG_ERROR )
243
+ {
244
+ msDebug ( "PROJ: Error: %s\n" , message );
245
+ }
246
+ else if ( level == PJ_LOG_DEBUG )
247
+ {
248
+ msDebug ( "PROJ: Debug: %s\n" , message );
249
+ }
250
+ }
251
+
234
252
/************************************************************************/
235
253
/* msProjectionContextCreate() */
236
254
/************************************************************************/
@@ -252,6 +270,7 @@ projectionContext* msProjectionContextCreate(void)
252
270
const char * const paths [1 ] = { ms_proj_lib };
253
271
proj_context_set_search_paths (ctx -> proj_ctx , 1 , paths );
254
272
}
273
+ proj_log_func (ctx -> proj_ctx , NULL , msProjErrorLogger );
255
274
return ctx ;
256
275
}
257
276
You can’t perform that action at this time.
0 commit comments