Re: [pmapper-users] Select with polygon

2012-05-05 Thread VT
Dear Thomas,
I tried graphicalqueries plugin and followed instructions but I get this
error when I reload the page:


Revision Log
root/trunk/pmapper/plugins/graphicalqueries/config.inc
View revision:
Visit:
Revision 1263, 216 bytes (checked in by traffin, 2 weeks ago)
graphicalqueries: new plugin
LineÂ
1?php
2
3$jsFiles = array(../common/common.js,
../drawing_base/drawing_base.js,graphicalqueries.js);
4
5$cssFiles = array(graphicalqueries.css);
6
7$jsInitFunction = PM.Plugin.GraphicalQueries.init();
8
9?
Note: See TracBrowser for help on using the browser.

Warning: Cannot modify header information - headers already sent by (output
started at /var/www/cbam/plugins/graphicalqueries/config.inc:152) in
/var/www/cbam/cbam.phtml on line 51



thanks in advance

Paolo



2012/4/16 Thomas RAFFIN traf...@sirap.fr

 Hi,

 The new plugin is available. Doc will soon be added in the wiki.

 Thomas

 Le 11/04/2012 17:07, Thomas RAFFIN a écrit :
  Hi,
 
  As it is often asked, I will soon add a new plugin with select by:
  - polygon
  - line
  - circle
  - buffer
  - ...
  in specify layer/group or all available a scale.
 
  Thomas
 
  Le 29/03/2012 15:27, Juliano C. P. Agostinho a écrit :
  Hi,
 
  The select function in toolbar only work using a box method, is it
  possible select using a circle or polygon ?
 
  Thank you
 
 
 --
  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
 
 

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] join to postgresql table problem

2012-03-15 Thread VT
Hi Chris,
thanks for your reply but my problem is to display joined records from
external table in query identify div window.
I think this is a specific pmapper way to do that but when I uncomment the
RESULT_JOIN tag in medatada I get
the not-stopping wheel

RESULT_JOIN pgsql://
postgres:mypass@127.0.0.1:5432/cbam_db||cens@ident@0@ident,note||FID||0

Tried with numeric, string fields, other layers but without success.

This is the pm debug log:
***
[15-Mar-2012 17:02:20] P.MAPPER debug info
 Validation of search.xml file FAILED:
Warning: DOMDocument::schemaValidate(): Element 'searchitem': Missing child
element(s). Expected is ( layer ). in /var/www/cbam/incphp/query/search.php
on line 71
***

I guess it cannot find postgres db or the cens table but this string
works fine in php files:
$connstr = dbname=cbam_db user=postgres password=mypasshost=localhost
port=5432;
$dbh = pg_connect($connstr);
$sql2 = SELECT * FROM cens;
$stat2 = pg_exec($dbh, $sql2);
$data2 = pg_fetch_array($stat2, $i2);

**

So, it would be very important for me if someone could tell me where in
source code I can get the layers and the values retrieved from identify
tool in order to manually insert the connection code to postgresql db.
I looked around the code but my programming skills are poor. Tried also to
insert test code in query.php and squery.php in order to get those
informations but every time I change something in those files (even a
simple echo) the identify tool stops to work.

thank you very much.

Paolo


2012/3/15 Chris forum bak.fo...@gmail.com

 Hello Paolo,

 Here under a working example on how to connect to postgresql/postgis table
 (used with Cartoweb) :

 LAYER
   NAME tree
   TYPE POINT
   STATUS ON
   METADATA
 id_attribute_string id_object
 query_returned_attributes id_object
   END
   SYMBOLSCALE 1000
   CONNECTIONTYPE postgis
   CONNECTION user= password= dbname= host=localhost port=5432
   DATA the_geom from tree using unique id_object using srid=21781
   TEMPLATE blabla
   LABELITEM id_object
   MAXSCALEDENOM 4990
   SYMBOLSCALEDENOM 1000
   POSTLABELCACHE ON
 CLASS
   STYLE
 SYMBOL circle
 COLOR 255 0 125
 MINSIZE 1
 SIZE 6
 MAXSIZE 10
   END
 END
 END


 You could also try to use QGIS and check if you are able to connect to
 your postgresql table.

 Hope that helps!

 BaK



 On Tue, Mar 13, 2012 at 8:53 AM, VT notis...@gmail.com wrote:

 Hi,
 I'm trying to join a postgres table to shapefile layer (one-to-many) but I
 get no response from identify tool.
 Connection to postgres works correctly in a separate php file:

 $connstr = dbname=cbam_db user=postgres password=mypass host=localhost
 port=5432;

$dbh = pg_connect($connstr);
if  ($dbh)
{
//do nothing... go on...
echo ...ok...;
}
else
{
echo troublesbr;
}
$sql2 = SELECT * FROM cbam_table;
$stat2 = pg_exec($dbh, $sql2);
$data2 = pg_fetch_array($stat2, $i2);
 for  ($i2 = 0; $i2  $rows2; $i2++)
echo $data2[categoria];
 }



 **

 this is my mapfile piece:


 LAYER
  NAME censnew
  TYPE line
  DATA censnew
  CLASSITEM Categ
  TEMPLATE void
  METADATA
DESCRIPTION Reticolo di competenza
RESULT_FIELDS NOME,COMUNE,CATEG,LUNGH
RESULT_HEADERS Nome,Comune,Categoria,Lunghezza(m)
ows_title  Reticolo di competenza
RESULT_JOIN pgsql://

 postgres:mypass@127.0.0.1:5432/cbam_db||cbam_table@categoria@1@categoria||CATEG||1http://postgres:mypass@127.0.0.1:5432/cbam_db%7C%7Ccbam_table@categoria@1@categoria%7C%7CCATEG%7C%7C1
 
  END
 ...
 ...

 postgresql table cbam_table has one text column named categoria.
 I tried with localhost instead of 127.0.0.1 but query window doesn't
 display. All works fine if I comment RESULT_JOIN row.

 Where am i wrong?

 thank you very much

 Paolo

 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



WebRep
Overall rating
--
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


[pmapper-users] join to postgresql table problem

2012-03-13 Thread VT
Hi,
I'm trying to join a postgres table to shapefile layer (one-to-many) but I
get no response from identify tool.
Connection to postgres works correctly in a separate php file:

$connstr = dbname=cbam_db user=postgres password=mypass host=localhost
port=5432;

$dbh = pg_connect($connstr);
if  ($dbh)
{
//do nothing... go on...
echo ...ok...;
}
else
{
echo troublesbr;
}
$sql2 = SELECT * FROM cbam_table;
$stat2 = pg_exec($dbh, $sql2);
$data2 = pg_fetch_array($stat2, $i2);
for  ($i2 = 0; $i2  $rows2; $i2++)
echo $data2[categoria];
}



**

this is my mapfile piece:


LAYER
  NAME censnew
  TYPE line
  DATA censnew
  CLASSITEM Categ
  TEMPLATE void
  METADATA
DESCRIPTION Reticolo di competenza
RESULT_FIELDS NOME,COMUNE,CATEG,LUNGH
RESULT_HEADERS Nome,Comune,Categoria,Lunghezza(m)
ows_title  Reticolo di competenza
RESULT_JOIN pgsql://
postgres:mypass@127.0.0.1:5432/cbam_db||cbam_table@categoria@1@categoria||CATEG||1

  END
...
...

postgresql table cbam_table has one text column named categoria.
I tried with localhost instead of 127.0.0.1 but query window doesn't
display. All works fine if I comment RESULT_JOIN row.

Where am i wrong?

thank you very much

Paolo
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] related tables and pmapper

2012-03-12 Thread VT
Hi,
I'm trying to modify identify table result with one-to-many relation from
shape to connected MSAccess or postgresql.
In pmapper faq (http://svn.pmapper.net/trac/wiki/FaqConfiguration) it's
reported that, using the result_join metadata tag, one2many joins are not
working correctly .

Which is the correct php file to modify in order to insert db connection
php code and get the results in identify table (is the printFields function
in squery.php)?
Does exist user sample code?

thank you very much

Paolo
WebRep
Overall rating
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] New plugin (find point t X et Y)

2012-02-06 Thread VT
Hi,
it works! it's a very useful plugin.
two more questions:
1. is it possible to modify the output scale (or area width), now it's very
small.
2. sorry for dummy question: I tried to use the second phtml (with epsg
management). I installed Proj4 but I don't know how to instance the proj4js
object in locatexy.phtml

thank you very much.

Giovanni

2012/2/6 Thomas RAFFIN traf...@sirap.fr

 Hi,

 It just require an other include in config.inc :
 $jsFiles = array('../common/common.js', 'locateXY.js');

 Thomas


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] New plugin (find point t X et Y)

2012-02-04 Thread VT
Hi,
followed instructions but I get an error when I click on xy button:

1. Enabled the plugin by adding a line in config_default.xml file:
pmapper
ini
pmapper

pluginslocateXY/plugins

/pmapper
/ini
/pmapper

2. added the search tool button to the interface in
/config/default/js_config.php file:
PM.buttonsDefault = {
.
buttons: [
.
{tool:'locateXY',  name:'Recherche XY',
run:'PM.Plugin.locateXY.openDlg'},

]
}

3. copied icon in buttons

The chrome console error is:

Uncaught ReferenceError: openAjaxQueryIn is not defined
$.extend.locateXY.openDlgjs_session.php:154
(anonymous function)
$.fn.extend.pmToolBarpm_cjs.js:41
d.event.handlejquery_merged.js:16
d.event.add.k.handle.mjquery_merged.js:16

Thank you very much

Giovanni


2012/2/1 Mouanis LAHLOU mouanis.lah...@gmail.com

 Here is a new plugin who can enable search of a point by typing his
 geographic coordinates.
 Looking for yours comments
 Regards

 --
 *Dr Mouanis LAHLOU*, *Professeur*
 Département de Statistique et Informatique Appliquées,
 Institut Agronomique et Vétérinaire Hassan II,
 B.P. 6202. Rabat–Instituts, Rabat MAROC

 mouanis.lah...@gmail.com
 m.lah...@iav.ac.ma


 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] New plugin (find point t X et Y)

2012-02-04 Thread VT
Hi,
Ubuntu 10.04 server 32 bit +  pmapper 4.2 + apache 2.0.59 + php 5.3.2 +
mapserver 6.0.1

thanks

Giovanni

2012/2/4 mouanis.lah...@gmail.com mouanis.lah...@gmail.com

 What your config?
 It work fine on pmapper 4.2, apache 2, mapserver 5.6
 Envoyé depuis mon téléphone Nokia
 -Message d'origine-
 De:VT
 Envoyé: 04/02/2012, 10:56
 A: Mouanis LAHLOU
 Cc: pmapper-users@lists.sourceforge.net
 Sujet: Re: [pmapper-users] New plugin (find point t X et Y)


 Hi,
 followed instructions but I get an error when I click on xy button:

 1. Enabled the plugin by adding a line in config_default.xml file:
 pmapper
ini
pmapper
 
pluginslocateXY/plugins
 
/pmapper
 /ini
 /pmapper

 2. added the search tool button to the interface in
 /config/default/js_config.php file:
 PM.buttonsDefault = {
 .
buttons: [
 .
{tool:'locateXY',  name:'Recherche XY',
 run:'PM.Plugin.locateXY.openDlg'},
 
 ]
 }

 3. copied icon in buttons

 The chrome console error is:

 Uncaught ReferenceError: openAjaxQueryIn is not defined
 $.extend.locateXY.openDlgjs_session.php:154
 (anonymous function)
 $.fn.extend.pmToolBarpm_cjs.js:41
 d.event.handlejquery_merged.js:16
 d.event.add.k.handle.mjquery_merged.js:16

 Thank you very much

 Giovanni


 2012/2/1 Mouanis LAHLOU mouanis.lah...@gmail.com

  Here is a new plugin who can enable search of a point by typing his
  geographic coordinates.
  Looking for yours comments
  Regards
 
  --
  *Dr Mouanis LAHLOU*, *Professeur*
  Département de Statistique et Informatique Appliquées,
  Institut Agronomique et Vétérinaire Hassan II,
  B.P. 6202. Rabat–Instituts, Rabat MAROC
 
  mouanis.lah...@gmail.com
  m.lah...@iav.ac.ma
 
 
 
 --
  Keep Your Developer Skills Current with LearnDevNow!
  The most comprehensive online learning library for Microsoft developers
  is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
  Metro Style Apps, more. Free future releases when you subscribe now!
  http://p.sf.net/sfu/learndevnow-d2d
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 
 

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] P.MAPPER: trouble with pdf print

2012-01-28 Thread VT
Hi all,
I get this error when I try to print on pdf format:

Notice: Undefined variable: existsXYLayer in
/var/www/cbam/incphp/print/print.php on line 347 *TCPDF ERROR: *Some data
has already been output, can't send PDF file

**

this is the landing url:

http://192.168.1.7/cbam/printmap.phtml?printscale=31printrefmap=ondocformat=pdfprinttitle=papersize=A4orientation=Pmaptype=normalPHPSESSID=dhn4omlm9jke8d5pmq11ht95g1config=default

**

this is the error log:

[28-Jan-2012 10:42:46] P.MAPPER debug info
PDF printing settings
 Array
(
[author] = Armin Burger
[pdftitle] = p.mapper
[defFont] = FreeSans
[defFontSize] = 9
[defFontColor] = 0,0,0
[printCategory] = 1
[top_height] = 30
[top_color] = 255,255,255
[top_bgcolor] = 51,102,153
[refmap_bgcolor] = 255,255,255
[scaletxt_bgcolor] = 255,255,255
[top_logo] = ./images/logos/logo.png
[title_xoffs] = 150
[title_yoffs] = SimpleXMLElement Object
(
)

[additionnalTitle] = SimpleXMLElement Object
(
[before] = SimpleXMLElement Object
(
[text] = SimpleXMLElement Object
(
)

[textFont] = FreeSans
[textSize] = 8
[textColor] = 0,0,0
[textBgColor] = 255,255,255
)

[after] = SimpleXMLElement Object
(
[text] = SimpleXMLElement Object
(
)

[textFont] = FreeSans
[textSize] = 8
[textColor] = 0,0,0
[textBgColor] = 255,255,255
)

)

[format] =
[printtitle] =
[width] = 1540
[height] = 1040
[legendposition] = none
[type] = nolegend
)

thanks in advance

Giovanni
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] P.MAPPER: trouble with pdf print

2012-01-28 Thread VT
session.save_path was not set in php.ini...
now it works!

thank you very much

Giovanni



2012/1/28 Armin Burger armin.bur...@gmx.net

 First change the settings in php.ini as listed in the p.mapper installation 
 instructions. Check especially everything where there is an IMPORTANT!!! 
 entry..., this way you should get rid of any Notice output and it should 
 already be ok.

 You could in addition apply the patch from
 http://svn.pmapper.net/trac/changeset/1250

 armin


 On 28/01/2012 10:50, VT wrote:

 Hi all,
 I get this error when I try to print on pdf format:

 Notice: Undefined variable: existsXYLayer in
 /var/www/cbam/incphp/print/print.php on line 347 *TCPDF ERROR: *Some data

 has already been output, can't send PDF file

 **

 this is the landing url:

 http://192.168.1.7/cbam/printmap.phtml?printscale=31printrefmap=ondocformat=pdfprinttitle=papersize=A4orientation=Pmaptype=normalPHPSESSID=dhn4omlm9jke8d5pmq11ht95g1config=default

 **

 this is the error log:

 [28-Jan-2012 10:42:46] P.MAPPER debug info
 PDF printing settings
  Array
 (
     [author] =  Armin Burger
     [pdftitle] =  p.mapper
     [defFont] =  FreeSans
     [defFontSize] =  9
     [defFontColor] =  0,0,0
     [printCategory] =  1
     [top_height] =  30
     [top_color] =  255,255,255
     [top_bgcolor] =  51,102,153
     [refmap_bgcolor] =  255,255,255
     [scaletxt_bgcolor] =  255,255,255
     [top_logo] =  ./images/logos/logo.png
     [title_xoffs] =  150
     [title_yoffs] =  SimpleXMLElement Object
         (
         )

     [additionnalTitle] =  SimpleXMLElement Object
         (
             [before] =  SimpleXMLElement Object
                 (
                     [text] =  SimpleXMLElement Object
                         (
                         )

                     [textFont] =  FreeSans
                     [textSize] =  8
                     [textColor] =  0,0,0
                     [textBgColor] =  255,255,255
                 )

             [after] =  SimpleXMLElement Object
                 (
                     [text] =  SimpleXMLElement Object
                         (
                         )

                     [textFont] =  FreeSans
                     [textSize] =  8
                     [textColor] =  0,0,0
                     [textBgColor] =  255,255,255
                 )

         )

     [format] =
     [printtitle] =
     [width] =  1540
     [height] =  1040
     [legendposition] =  none
     [type] =  nolegend
 )

 thanks in advance

 Giovanni
 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] P.MAPPER: multiple searchlists in pmapper interface

2012-01-28 Thread VT
Hi all,
I set many inline searchitem in config_default.xml file.
 is it possible to display multiple searchlists in pmapper interface,
so dividing searchitems among two or more combos?

thanks in advance

Giovanni

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
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-21 Thread VT
Thomas and Armin,
compiled mapserv -v cgi returns OUTPUT=PNG

I'll checked apache error log and modify OUTPUTFORMAT in mapfile using also
different drivers.

Thank you very much for you help

Valerio


2011/12/20 Armin Burger armin.bur...@gmail.com

 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

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

2011-12-19 Thread VT
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

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 /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523

Mapscript is regularly loaded in phpinfo:

MapScript
MapServer Version MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG
OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE
PHP MapScript Version ($Revision: 11619 $ $Date: 2011-04-27 11:23:07
-0400 (Wed, 27 Apr 2011) $)

Any help appreciated

Thanks

Giorgio
--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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-19 Thread VT
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 Lorenzetti 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
 
  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 /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523
 
  Mapscript is regularly loaded in phpinfo:
 
  MapScript
  MapServer Version MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG
  OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
  SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
  SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
  SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL
  INPUT=SHAPEFILE
  PHP MapScript Version ($Revision: 11619 $ $Date: 2011-04-27 11:23:07
  -0400 (Wed, 27 Apr 2011) $)
 
  Any help appreciated
 
  Thanks
 
  Giorgio
 
 --
  Learn Windows Azure Live!  Tuesday, Dec 13, 2011
  Microsoft is holding a special Learn Windows Azure training event for
  developers. It will provide a great way to learn Windows Azure and what
 it
  provides. You can attend the event by watching it streamed LIVE online.
  Learn more at http://p.sf.net/sfu/ms-windowsazure
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users


 --

 Walter Lorenzetti phD
 email: lorenze...@gis3w.it
 skype: aiki74
 Cell: (+39) 347-6597931  Tel+Fax: (+39) 0588 85021
 Viale Giuseppe Verdi n. 24, 51016
 Montecatini Terme,Pistoia
 P.IVA 01686280478
 Italy



 --
 Learn Windows Azure Live!  Tuesday, Dec 13, 2011
 Microsoft is holding a special Learn Windows Azure training event

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

2011-12-19 Thread VT
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

 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:
  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 /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523
 
  Mapscript is regularly loaded in phpinfo:
 
  MapScript
  MapServer Version MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG
  OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
  SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
  SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
  SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL
  INPUT=SHAPEFILE
  PHP MapScript Version ($Revision: 11619 $ $Date: 2011-04-27
 11:23:07
  -0400 (Wed, 27 Apr 2011) $)
 
  Any help appreciated
 
  Thanks
 
  Giorgio
 
 
 --
  Learn Windows Azure Live!  Tuesday, Dec 13, 2011
  Microsoft is holding a special Learn Windows Azure training event for
  developers. It will provide a great way to learn Windows Azure and what
  it
  provides. You can attend the event by watching it streamed LIVE online.
  Learn more at http://p.sf.net/sfu/ms-windowsazure
  ___
  pmapper-users mailing list

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

2011-12-19 Thread VT
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

  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

 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:
  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 /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523
 
  Mapscript is regularly loaded in phpinfo:
 
  MapScript
  MapServer Version MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG
  OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
 SUPPORTS=ICONV
  SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
  SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
  SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL
  INPUT=SHAPEFILE
  PHP MapScript Version ($Revision