Hi all,

Have a strange problem with the Coordinates plugin, it works fine with 1
mapPrj and 2+ prj declared int the config file.
But if I only want to have 1 mapPrj and 1 prj, there is an alert message:
"Missing entries for plugin config. See PHP error log"

and  apache shows the following error:
[Tue Feb 12 13:21:04 2013] [error] [client 10.45.113.9] PHP Warning:
projectionObj::__construct(): [MapServer Error]: msProcessProjection():
proj error "projection not named" for "l"\n in
/data/dataweb/web/dev/newgc_svn/pmapper430/plugins/coordinates/projection.php
on line 13, referer:
http://myserver/pmapper430/map_guichetcarto02.phtml?config=guichetcarto02&resetsession=ALL

My config file contains:
           <coordinates>
                <mapPrj name="CH1903" roundTo="0">
                  <definition>init=epsg:21781</definition>
                </mapPrj>
                <prj name="lat/lon WGS84" roundTo="6">
                    <definition>init=epsg:4326</definition>
                </prj>
            </coordinates>

For a check, I have added the following debug in
/plugins/coordinates/x_coords.php, after $prjList = $prjCfg['prj']; (line27)
*throw(new Exception("prjList: " . count($prjList)));*

If I only keep  the mapPrj in the config file, apache error log shows:
Uncaught exception 'Exception' with message 'prjList: 0'

if I add one prj in the config file:
Uncaught exception 'Exception' with message 'prjList: *4*'

if I add two prj:
Uncaught exception 'Exception' with message 'prjList: 2'

three prj:
Uncaught exception 'Exception' with message 'prjList: 3'


Any idea why the prjlist is counting 4 instead of 1 projection?

Thanx,
Chris
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to