Re: [pmapper-users] problem with legend folder...

2011-12-20 Thread Thomas RAFFIN
Hi,

Createimg.log is only here for its date.

OK, the error is due to your PHP / Mapserver compilation. Does Mapserver 
CGI write PNG images?

There are few different ways to use PNG ouput with MapServer (GD, AGG, 
maybe openGL, and differrents options). Maybe you should try with 
different drivers.

Thomas

Le 19/12/2011 23:52, VT a écrit :
 it works if I set imgFormatjpeg/imgFormat in config_default.xml 
 and IMAGETYPE jpeg in pmapper_demo.map
 With png output I get error messages as above.
 createimg.log reports no error.
 I didn't modify demo config_default.xml and mapfile.
 I'm pretty sure that I built php against libpng but I didn't found it 
 in phpinfo. Could this be the problem?

 thank you very much

 Giorgio



 2011/12/19 Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr

 Adn you have removed all png files after applying the rights? What
 about the createimage.log (or something like that) in this
 directory ?

 Le 19/12/2011 18:27, VT a écrit :
 Thomas,

 chmod u+rwx legend
 chmod go+rwx legend

 but it gives me the same error and creates again the 0 byte file.

 Maybe something wrong with png creation?

 thank you

 Giorgio

 2011/12/19 Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr

 Hi,

 Have you already made that:
 
 http://svn.pmapper.net/trac/wiki/DocQuickinstall#Directoryimageslegend
 (after deleting the existing files) ?
 Maybe your case require a chmod u+ on the directory

 Thomas

 Le 19/12/2011 17:59, VT a écrit :
  Walter,
  deleted all files in /images/legend but problem is not solved.
  I get again the message
  Uncaught exception 'MapScriptException' with message 'Failed
  writing image to /var/www/pmapper-4.2.0/images/
  legend/countries_i0.png
  The strange thing is that it creates a 0 bytes
 countries_i0.png (now the
  only file) into the folder.
  -rw-r--r-- 1 www-data www-data 0 2011-12-19 17:54
 countries_i0.png
 
  thanks
 
  Giorgio
 
 
  2011/12/19 Walter Lorenzettilorenze...@gis3w.it
 mailto:lorenze...@gis3w.it
 
  Hi Giorgio,
 
  you are  right to change mode and owned of images/legend,
 but you've to
  change also files inside permissions...
 
  The fast way for the first time is to delete every files
 in the
  images/legend folder.
 
  W
 
 
  Il 19/12/2011 15:39, VT ha scritto:
  Hi all,
  I installed pmapper 4.2 (Ubuntu 10.04, php5.3.2) and
 tried to configure
  it
  with demo data.
  I chmoded and chowned images/legend folder:
  **
  drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39 cursors
  -rw-r--r-- 1 root 2002   201 2006-11-19 15:03
 downsimple.png
  -rw-r--r-- 1 root 2002  1406 2006-11-19 15:03
 favicon.ico
  -rw-r--r-- 1 root 2002  1787 2007-12-09 16:27
 indicator.gif
  drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39
 indicators
  -rw-r--r-- 1 root 200265 2006-12-30 12:43
 infolink.gif
  -rw-r--r-- 1 root 2002   150 2006-11-19 15:03
 layer.gif
  -rw-r--r-- 1 root 2002   127 2006-11-19 15:03
 layers.gif
  drwxrwsrwx 2 www-data www-data  4096 2011-12-19 12:39 legend
  -rw-r--r-- 1 root 2002  1718 2006-11-19 15:03
 loading.gif
  drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39 logos
  -rw-r--r-- 1 root 200270 2007-01-03 22:45
 menudown.gif
  drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39 menus
  ***
 
  but when I try to open demo url:
  http://127.0.0.1/pmapper-4.2.0/map_default.phtml
 
  I get this message:
  Fatal error: Uncaught exception 'MapScriptException' with
 message 'Failed
  writing image to
 /var/www/pmapper-4.2.0/images/legend/countries_i0.png'
  in
  /var/www/pmapper-4.2.0/incphp/init/initmap.php:523 Stack
 trace: #0
  /var/www/pmapper-4.2.0/incphp/init/initmap.php(523):
  imageObj-saveImage('/var/www/pmappe...') #1
  /var/www/pmapper-4.2.0/incphp/init/initmap.php(402):
  Init_map-createLegendList() #2
  /var/www/pmapper-4.2.0/incphp/init/initmap.php(69):
  Init_map-_initLegend()
  #3 /var/www/pmapper-4.2.0/incphp/init/init.php(34):
  Init_map-initAllParameters() #4
  /var/www/pmapper-4.2.0/map_default.phtml(48):
  include_once('/var/www/pmappe...') #5 {main} thrown in
  /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523
 
  

[pmapper-users] Configure layout

2011-12-20 Thread deivid menna
How to configure the layout  in pmapper 4.2 to change the default layout to 
another? example to plainlayout2 
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] pmapper and google maps

2011-12-20 Thread deivid menna
Hi all,
I've seen on page http://geoservices.aena-upm.es/map/map.phtml have been able 
to integrate with google maps pmapper. 
Does anyone have any idea how is this possible?

Thanks.

David 
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] problem with legend folder...

2011-12-20 Thread Armin Burger
just run mapserv -v for your compiled Mapserver CGI and if it does not 
contain OUTPUT=PNG then the support for PNG is missing. Or you have 
some broken dependencies, check also the apache error log for 
segmentation faults if you use MS 6.0. It has a re-written/re-structured 
PHP Mapscript code which might have some bugs left.

In general, either remove all OUTPUTFORMAT tags from your map file (this 
will use the default definitions) or start with the new definitions from 
the MS 6 docs and adapt them as needed.

armin



On 19/12/2011 23:52, VT wrote:
 it works if I setimgFormatjpeg/imgFormat  in config_default.xml and
 IMAGETYPE jpeg in pmapper_demo.map
 With png output I get error messages as above.
 createimg.log reports no error.
 I didn't modify demo config_default.xml and mapfile.
 I'm pretty sure that I built php against libpng but I didn't found it in
 phpinfo. Could this be the problem?

 thank you very much

 Giorgio



 2011/12/19 Thomas RAFFINtraf...@sirap.fr

   Adn you have removed all png files after applying the rights? What about
 the createimage.log (or something like that) in this directory ?

 Le 19/12/2011 18:27, VT a écrit :

 Thomas,

 chmod u+rwx legend
 chmod go+rwx legend

 but it gives me the same error and creates again the 0 byte file.

 Maybe something wrong with png creation?

 thank you

 Giorgio

   2011/12/19 Thomas RAFFINtraf...@sirap.fr

 Hi,

 Have you already made that:
 http://svn.pmapper.net/trac/wiki/DocQuickinstall#Directoryimageslegend
 (after deleting the existing files) ?
 Maybe your case require a chmod u+ on the directory

 Thomas

 Le 19/12/2011 17:59, VT a écrit :
 Walter,
 deleted all files in /images/legend but problem is not solved.
 I get again the message
 Uncaught exception 'MapScriptException' with message 'Failed
 writing image to /var/www/pmapper-4.2.0/images/
 legend/countries_i0.png
 The strange thing is that it creates a 0 bytes countries_i0.png (now the
 only file) into the folder.
 -rw-r--r-- 1 www-data www-data 0 2011-12-19 17:54 countries_i0.png

 thanks

 Giorgio


 2011/12/19 Walter Lorenzettilorenze...@gis3w.it

 Hi Giorgio,

 you are  right to change mode and owned of images/legend, but you've to
 change also files inside permissions...

 The fast way for the first time is to delete every files in the
 images/legend folder.

 W


 Il 19/12/2011 15:39, VT ha scritto:
 Hi all,
 I installed pmapper 4.2 (Ubuntu 10.04, php5.3.2) and tried to
 configure
 it
 with demo data.
 I chmoded and chowned images/legend folder:
 **
 drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39 cursors
 -rw-r--r-- 1 root 2002   201 2006-11-19 15:03 downsimple.png
 -rw-r--r-- 1 root 2002  1406 2006-11-19 15:03 favicon.ico
 -rw-r--r-- 1 root 2002  1787 2007-12-09 16:27 indicator.gif
 drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39 indicators
 -rw-r--r-- 1 root 200265 2006-12-30 12:43 infolink.gif
 -rw-r--r-- 1 root 2002   150 2006-11-19 15:03 layer.gif
 -rw-r--r-- 1 root 2002   127 2006-11-19 15:03 layers.gif
 drwxrwsrwx 2 www-data www-data  4096 2011-12-19 12:39 legend
 -rw-r--r-- 1 root 2002  1718 2006-11-19 15:03 loading.gif
 drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39 logos
 -rw-r--r-- 1 root 200270 2007-01-03 22:45 menudown.gif
 drwxr-sr-x 2 root 2002  4096 2011-12-19 12:39 menus
 ***

 but when I try to open demo url:OUTPUT=PNG
 http://127.0.0.1/pmapper-4.2.0/map_default.phtml

 I get this message:
 Fatal error: Uncaught exception 'MapScriptException' with message
 'Failed
 writing image to
 /var/www/pmapper-4.2.0/images/legend/countries_i0.png'
 in
 /var/www/pmapper-4.2.0/incphp/init/initmap.php:523 Stack trace: #0
 /var/www/pmapper-4.2.0/incphp/init/initmap.php(523):
 imageObj-saveImage('/var/www/pmappe...') #1
 /var/www/pmapper-4.2.0/incphp/init/initmap.php(402):
 Init_map-createLegendList() #2
 /var/www/pmapper-4.2.0/incphp/init/initmap.php(69):
 Init_map-_initLegend()
 #3 /var/www/pmapper-4.2.0/incphp/init/init.php(34):
 Init_map-initAllParameters() #4
 /var/www/pmapper-4.2.0/map_default.phtml(48):
 include_once('/var/www/pmappe...') #5 {main} thrown in
 /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523

 Here is the phperror log:
 [19-Dec-2011 15:19:54] PHP Fatal error:  Uncaught exception
 'MapScriptException' with message 'Failed writing image to
 /var/www/pmapper-4.2.0/images/legend/countries_i0.png' in
 /var/www/pmapper-4.2.0/incphp/init/initmap.php:523
 Stack trace:
 #0 /var/www/pmapper-4.2.0/incphp/init/initmap.php(523):
 imageObj-saveImage('/var/www/pmappe...')
 #1 /var/www/pmapper-4.2.0/incphp/init/initmap.php(402):
 Init_map-createLegendList()
 #2 /var/www/pmapper-4.2.0/incphp/init/initmap.php(69):
 Init_map-_initLegend()
 #3 /var/www/pmapper-4.2.0/incphp/init/init.php(34):
 Init_map-initAllParameters()
 #4 /var/www/pmapper-4.2.0/map_default.phtml(48):
 include_once('/var/www/pmappe...')
 #5 {main}
 thrown in 

[pmapper-users] pmapper and google maps

2011-12-20 Thread Andreas Douvalis
Make one div for the google map inside ui-layout-center, for example:
div id=map2 class=map2/div 

Then add javascript for openlayers :
...
map2 = new OpenLayers.Map('map2', options);   
..
use PM.Map.bindOnMapRefresh function to change extents of openlayers map when 
extents of pmappers have changed.
for example:
PM.Map.bindOnMapRefresh(null,function(e){
var maxx_geo=PM.xdelta_geo+PM.minx_geo;
var miny_geo=PM.maxy_geo-PM.ydelta_geo;
var Bounds = new OpenLayers.Bounds(PM.minx_geo, miny_geo, maxx_geo, 
PM.maxy_geo);
map2.zoomToExtent(Bounds);

});  


Set z-index of map2 to be under the map of pmapper

Ofcorse there are a lot of javascript ajax and to do. The above scripts are 
just the beginning. good luck.
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users