[MapServer-users] Verbosity of PROJ_DEBUG ON

PE Lord pe_lord at protonmail.com
Wed Oct 15 13:28:50 PDT 2025


I'm migrating to Mapserver 8.4.1 + proj 9.6

I've tried your solution without any success.

Here my debug config:

CONFIG "CPL_DEBUG" "ON"
CONFIG "PROJ_DEBUG" "5"
CONFIG "CPL_CURL_VERBOSE" "ON"
CONFIG "CPL_TIMESTAMP" "ON" CONFIG "MS_ERRORFILE" "stderr"

Here the output

mod_fcgid: stderr: msDrawRasterLayerLow(MX9-01_20240730_000784-001_0030): entering.
mod_fcgid: stderr: msDrawRasterLayerLow(MX9-01_20240730_000784-001_0030): Filename is: .../MX9-01_20240730_000784-001_0030.tif
mod_fcgid: stderr: msDrawRasterLayerLow(MX9-01_20240730_000784-001_0030): Path is: .../MX9-01_20240730_000784-001_0030.tif
mod_fcgid: stderr: msResampleGDALToMap in effect: cellsize = 0.223749
mod_fcgid: stderr: msDrawGDAL(MX9-01_20240730_000784-001_0030): using RAW_WINDOW=0 0 2101 2851, dst=0,0,939,1274
mod_fcgid: stderr: msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0
mod_fcgid: stderr: msDrawMap(): Layer 0 (MX9-01_20240730_000784-001_0030), 0.027s
mod_fcgid: stderr: freeLayer(): freeing layer at 0x13d42d0.
mod_fcgid: stderr: freeLayer(): freeing layer at 0x1abd450.mod_fcgid: stderr: freeLayer(): freeing layer at 0x1b12e40.

Le dimanche 5 octobre 2025 à 03:53, Seth G <sethg at geographika.co.uk> a écrit :

> 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/20251015/2cff6c61/attachment-0001.htm>


More information about the MapServer-users mailing list