[MapServer-users] Verbosity of PROJ_DEBUG ON

Seth G sethg at geographika.co.uk
Sun Oct 5 00:53:06 PDT 2025


Hi,

You have all the debug options on for MapServer that I am aware of. Maybe you can try CONFIG "PROJ_DEBUG" "5" to see if that is more verbose?

https://proj.org/en/stable/usage/environmentvars.html#envvar-PROJ_DEBUG

MapServer passes this value on as an environment variable. Maybe something has changed as the MapServer docs always use "ON" and "OFF" whereas PROJ states:

> Starting with PROJ 9.3, ON can be used as an alias for 2, and OFF as an alias for 1.

Seth

--
web:https://geographika.net & https://mapserverstudio.net
mastodon: @geographika at mastodon.social

On Thu, Oct 2, 2025, at 3:20 PM, PE Lord via MapServer-users wrote:
> I have Mapserver 7.6.2 compiled with proj 7.2.1 and gdal version (?). Sorry.
> 
> I have solved an PROJ issue on my current server. I have modified the PROJ_DATA (PROJ_LIB) sqlite database to handle properly my local projection, including a Canadian NTv2 grid transformation.
> 
> My ...proj/bin/projinfo, on my server seem to use the right Canadian nadgrid file (ca_nrc_NA83SCRS.tif).
> 
> Here my question, how to debug PROJ, through Mapserver will a high level of verbose?
> 
> Here my mapfile
> 
>     CONFIG "CPL_DEBUG" "ON"
>     CONFIG "PROJ_DEBUG" "ON"
>     CONFIG "CPL_CURL_VERBOSE" "ON"
>     CONFIG "CPL_TIMESTAMP" "ON"
>     CONFIG "MS_ERRORFILE"  "debug_proj.log"
> 
> 
> 
> ###########################
> 
> LAYER
>     DEBUG 5
> NAME "MX9-01_20240730_000784-001_0030"
> DATA "[...path...]/MX9-01_20240730_000784-001_0030.tif"
> TYPE RASTER
> PROJECTION
> "init=epsg:3799"
> END
> END
> 
> ###########################
> Here the log output:
> 
> [Wed Aug 27 10:13:25 2025].225353 msDrawRasterLayerLow(MX9-01_20240730_000784-001_0030): entering.
> [Wed Aug 27 10:13:25 2025].225880 msDrawRasterLayerGDAL(): Entering transform.
> [Wed Aug 27 10:13:25 2025].225894 msDrawRasterLayerGDAL(): src=1534,1715,419,296, dst=0,0,1300,919
> [Wed Aug 27 10:13:25 2025].225899 msDrawRasterLayerGDAL(): source raster PL (1533.977,1715.259) for dst PL (0,0).
> [Wed Aug 27 10:13:25 2025].225910 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0
> [Wed Aug 27 10:13:25 2025].251631 msDrawMap(): Layer 0 (MX9-01_20240730_000784-001_0030), 0.026s
> [Wed Aug 27 10:13:25 2025].327641 freeLayer(): freeing layer at 0x2727a80.
> [Wed Aug 27 10:13:25 2025].327746 freeLayer(): freeing layer at 0x27a4850.
> [Wed Aug 27 10:13:27 2025].569803 freeLayer(): freeing layer at 0x3e92d90.
> [Wed Aug 27 10:13:27 2025].569862 freeLayer(): freeing layer at 0x2660f60.
> 
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20251005/f549f816/attachment.htm>


More information about the MapServer-users mailing list