Re: [pmapper-users] R: p.mapper 5, first beta

2012-03-28 Thread Armin Burger
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,cities1eu,riversimgformat=png32width=1618height=394bbox=-13835306.273579,3640235.820249,17835306.273579,11359764.179751crs=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,cities1eu,riversimgformat=png32width=1618height=394bbox=-13835306.273579,3640235.820249,17835306.273579,11359764.179751crs=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=d8a4e0j9065ofibm6233qinsc6groups=countries,cities1eu,riversimgformat=png32width=2049height=567bbox=-18047292.279619,1952506.2359473,22047292.279619,13047493.764053crs=EPSG%3A900913
 
 ?PHPSE...:900913
 NetworkError: 400 Bad Request -
 http://localhost/pmapper5/lib/map/pmap/?PHPSESSID=d8a4e0j9065ofibm6233qinsc6groups=countries,cities1eu,riversimgformat=png32width=2049height=567bbox=-18047292.279619,1952506.2359473,22047292.279619,13047493.764053crs=EPSG%3A900913
 
 ?PHPSE...:900913*


 Regards,
 Serge




 On Wed, Mar 28, 2012 at 4:15 AM, Armin Burger armin.bur...@gmail.comwrote:

 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=itc05csqvrod1j47c4qur8cim3groups=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.pnghttp://tile.openstreetmap.org/0/0/1.png
 
 Image corrupt or truncated:
 http://localhost/pmapper5/lib/**map/pmap?groups=countries,**
 cities1eu,rivers**imgformat=png32width=1618**
 

Re: [pmapper-users] R: p.mapper 5, first beta

2012-03-28 Thread Serge Claudio Rafanoharana
Armin,

Great, it solved it.

Regards,
Serge

On Wed, Mar 28, 2012 at 3:49 PM, Armin Burger armin.bur...@gmail.comwrote:

 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,cities1eu,riversimgformat=png32width=1618height=394bbox=-13835306.273579,3640235.820249,17835306.273579,11359764.179751crs=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,cities1eu,riversimgformat=png32width=1618height=394bbox=-13835306.273579,3640235.820249,17835306.273579,11359764.179751crs=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=d8a4e0j9065ofibm6233qinsc6groups=countries,cities1eu,riversimgformat=png32width=2049height=567bbox=-18047292.279619,1952506.2359473,22047292.279619,13047493.764053crs=EPSG%3A900913
 
 ?PHPSE...:900913
 NetworkError: 400 Bad Request -
 http://localhost/pmapper5/lib/map/pmap/?PHPSESSID=d8a4e0j9065ofibm6233qinsc6groups=countries,cities1eu,riversimgformat=png32width=2049height=567bbox=-18047292.279619,1952506.2359473,22047292.279619,13047493.764053crs=EPSG%3A900913
 
 ?PHPSE...:900913*


 Regards,
 Serge




 On Wed, Mar 28, 2012 at 4:15 AM, Armin Burger armin.bur...@gmail.comwrote:

 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=itc05csqvrod1j47c4qur8cim3groups=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:
 

[pmapper-users] search

2012-03-28 Thread Pedro Costa
Hello list,

I have one problem, When I move my files of p.mapper to server, my 
search of two layers, (configured in layer_config) crashed, it's forever 
making the load...

In the log files i donĀ“t find nothing about that...

Someone have an idea about what is the problem?

Thanks

Pedro

--
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