Armin, Great, it solved it.
Regards, Serge On Wed, Mar 28, 2012 at 3:49 PM, Armin Burger <armin.bur...@gmail.com>wrote: > you need very likely to specify the 900913 projection in your epsg file > which seems to be missing. Where the file is located depends on the > installation (see my mail to Thomas Raffin 2 days ago). Add a line in this > file like > > <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 > +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs <> > > armin > > > On Wed, Mar 28, 2012 at 7:10 AM, Serge Claudio Rafanoharana < > rafanohar...@gmail.com> wrote: > >> Armin, >> >> PHP error log gives: >> * >> [28-Mar-2012 04:25:40] PHP Warning: mapObj::setProjection(): >> setProjection failed, in C:\ms4w\Apache\htdocs\pmapper5\lib\map\map.php on >> line 85 >> [28-Mar-2012 04:25:40] PHP Warning: mapObj::setSize(): [MapServer >> Error]: msProcessProjection(): no options found in 'init' file >> in C:\ms4w\Apache\htdocs\pmapper5\lib\map\map.php on line 88 >> [28-Mar-2012 04:25:40] PHP Warning: mapObj::setSize(): [MapServer >> Error]: msProcessProjection(): no options found in 'init' file >> in C:\ms4w\Apache\htdocs\pmapper5\lib\map\map.php on line 88 >> [28-Mar-2012 04:25:42] PHP Warning: mapObj::setProjection(): >> setProjection failed, in C:\ms4w\Apache\htdocs\pmapper5\lib\map\map.php on >> line 85 >> [28-Mar-2012 04:25:42] PHP Warning: mapObj::setSize(): [MapServer >> Error]: msProcessProjection(): no options found in 'init' file >> in C:\ms4w\Apache\htdocs\pmapper5\lib\map\map.php on line 88 >> [28-Mar-2012 04:25:42] PHP Warning: mapObj::setSize(): [MapServer >> Error]: msProcessProjection(): no options found in 'init' file >> in C:\ms4w\Apache\htdocs\pmapper5\lib\map\map.php on line 88 >> * >> >> When requesting the URL http://localhost/pmapper5/ directly in the >> browser, Firebug gives: >> * >> Image corrupt or truncated: >> http://localhost/pmapper5/lib/map/pmap?&groups=countries,cities10000eu,rivers&imgformat=png32&width=1618&height=394&bbox=-13835306.273579,3640235.820249,17835306.273579,11359764.179751&crs=EPSG%3A900913 >> >> ...;var layers=this.map.layers;var layer;for(var >> i=layers.length-1;i>=0;--i){layer=... >> >> OpenLayers.js (line 1110) >> * >> * >> >> Image corrupt or truncated: >> http://localhost/pmapper5/lib/map/pmap?&groups=countries,cities10000eu,rivers&imgformat=png32&width=1618&height=394&bbox=-13835306.273579,3640235.820249,17835306.273579,11359764.179751&crs=EPSG%3A900913 >> * >> *"NetworkError: 404 Not Found - http://tile.openstreetmap.org/0/0/1.png"* >> * >> 1.png* >> >> >> If I set the: >> >> *session.use_cookies = 0* >> >> The display becomes like default openlayers (without banner, footer, >> legend, ...), we only have the map, the zoom tool and the map tools (Home, >> Zoom in/out, Back, Forward, Identify, ...) >> >> and Firebug gives: >> * >> syntax error >> >> http://localhost/pmapper5/lib/js/js_session.php?PHPSESSID=d8a4e0j9065ofibm6233qinsc6 >> Line 2 >> >> PM.grouplist is undefined >> http://localhost/pmapper5/js/PM.Control.PMToc.js >> Line 283 >> >> "NetworkError: 400 Bad Request - >> http://localhost/pmapper5/lib/map/pmap/?PHPSESSID=d8a4e0j9065ofibm6233qinsc6&groups=countries,cities10000eu,rivers&imgformat=png32&width=2049&height=567&bbox=-18047292.279619,1952506.2359473,22047292.279619,13047493.764053&crs=EPSG%3A900913 >> " >> ?PHPSE...:900913 >> "NetworkError: 400 Bad Request - >> http://localhost/pmapper5/lib/map/pmap/?PHPSESSID=d8a4e0j9065ofibm6233qinsc6&groups=countries,cities10000eu,rivers&imgformat=png32&width=2049&height=567&bbox=-18047292.279619,1952506.2359473,22047292.279619,13047493.764053&crs=EPSG%3A900913 >> " >> ?PHPSE...:900913* >> >> >> Regards, >> Serge >> >> >> >> >> On Wed, Mar 28, 2012 at 4:15 AM, Armin Burger <armin.bur...@gmail.com>wrote: >> >>> Serge >>> >>> did you check your PHP error log? What do you get when you request the >>> URL directly in the browser (Firebug response, etc)? >>> >>> In principal your tile URL should have the key with the PHP session ID >>> included, like >>> >>> http://localhost/eclipse/**pmapper-5-dev/lib/map/pmap/?**PHPSESSID=** >>> itc05csqvrod1j47c4qur8cim3&**groups=countries,..<http://localhost/eclipse/pmapper-5-dev/lib/map/pmap/?PHPSESSID=itc05csqvrod1j47c4qur8cim3&groups=countries,..> >>> .. >>> >>> When using cookies for sessions in PHP this is not always added (don't >>> know when and when not...). But then the session should be handled via the >>> cookies, so no problem should appear neither... But to be sure just try >>> once setting the php.ini flag like >>> >>> session.use_cookies = 0 >>> >>> and see if it works better. I tested it with cookies enabled and then >>> the direct URL worked also without the session included in the URL. And >>> your URL works for my installation. I don't think Windows as server makes >>> any difference... >>> >>> Armin >>> >>> >>> >>> On 27/03/2012 22:49, Serge Claudio Rafanoharana wrote: >>> >>>> Dear Armin, >>>> >>>> I tried the version 5 but gives me some errors. All shapefiles in the >>>> First >>>> Domain are not displayed but all in the Second Domain are working. I got >>>> this message in Firebug: >>>> >>>> "NetworkError: 404 Not Found - http://tile.openstreetmap.org/** >>>> 0/0/1.png <http://tile.openstreetmap.org/0/0/1.png>" >>>> Image corrupt or truncated: >>>> http://localhost/pmapper5/lib/**map/pmap?&groups=countries,** >>>> cities10000eu,rivers&**imgformat=png32&width=1618&** >>>> height=475&bbox=-13835306.**273579,2847736.7110985,** >>>> 17835306.273579,12152263.**288902&crs=EPSG%3A900913<http://localhost/pmapper5/lib/map/pmap?&groups=countries,cities10000eu,rivers&imgformat=png32&width=1618&height=475&bbox=-13835306.273579,2847736.7110985,17835306.273579,12152263.288902&crs=EPSG%3A900913> >>>> >>>> Any thoughts? >>>> >>>> I'm running on Windows. >>>> >>>> Regards, >>>> Serge >>>> >>>> >> >> >> -- >> Serge >> > > -- Serge ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users