[Chameleon] PHP/MapServer/PROJ issue, Invalid or no access to template/context

Maciej Sieczka tutey at o2.pl
Wed Jul 11 04:53:34 EDT 2007

Maciej Sieczka wrote:

> Warning: [MapServer Error]: msProcessProjection(): no options found in
> 'init' file in
> /home/etc/chameleon/htdocs/common/wrapper/map_session.php on line 216

Got it, finally. The culprit is the epsg:42304 code present throughout the

I also know it's not a discovery. I was aware from other posts, that it is a
frequent problem that the code is not present in PROJ.4 epsg file. But, I
assumed that I had this code in my epsg file, because GDAL's epsg_tr.py
recognizes it:

$ epsg_tr.py -proj4 42304
# NAD83 / NRCan LCC Canada
<42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0
+ellps=GRS80 +datum=NAD83 +units=m +no_defs  <>

Allas, my assumption was wrong. The code is indeed recognized by my GDAL
installation, but only because it is provided in another file, parallel to

$ grep 42304 /usr/local/share/proj/*
/usr/local/share/proj/other.extra:<42304> +proj=lcc +lat_1=49 +lat_2=77
+lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m
+no_defs  no_defs <>

Chameleon (or MapServer?) doesn't parse this other.extra file; only epsg.
After copying 42304 definition to epsg, Chameleon (or MapServer?) doesn't
return any msProcessProjection() errors anymore.

However, my other questions and doubts described in my other post [1] are
still valid. If anyone can enlighten me, I'd love to summarise my
installation adventures on the WIKI to save some trouble to future users.


View this message in context: http://www.nabble.com/PHP-MapServer-PROJ-issue%2C-Invalid-or-no-access-to-template-context-tf4038312.html#a11536559
Sent from the chameleon general mailing list archive at Nabble.com.

More information about the Chameleon mailing list