Ok, I've try to change my .map file like this :

////////
[...]
WEB
  TEMPLATE "map.html"
  IMAGEPATH "/var/local/httpdata/pmapper/images/"
  IMAGEURL "/var/local/httpdata/pmapper/tmp/"
END  # Web
[...]
///////

and I do :

///////
REMIGE-DEBIAN:/# mkdir /var/local/httpdata/pmapper/tmp
REMIGE-DEBIAN:/# chown -R www:staff /var/local/httpdata/pmapper/tmp/
//////

my "www" user is for the apache process, look :

//////
REMIGE-DEBIAN:/# ps -u www 
  PID TTY          TIME CMD
  791 ?        00:00:55 httpd
  792 ?        00:00:37 httpd
  793 ?        00:01:00 httpd
  794 ?        00:01:16 httpd
  796 ?        00:01:11 httpd
  899 ?        00:01:02 httpd
  900 ?        00:00:40 httpd
 1616 ?        00:00:19 httpd
//////

I try to refresh the local pmapper web site ...

... The same ... a dark blue map !

I look on my new tmp folder :

///////
REMIGE-DEBIAN:/# ls -l /var/local/httpdata/pmapper/tmp/
total 0
///////

Nothing, no one picture !

I look on my access an error apache log files :
/////////
REMIGE-DEBIAN:/# cat /usr/local/logs/access_log 
[...]
192.168.237.1 - - [15/Mar/2007:15:17:38 +0100] "GET 
/var/local/httpdata/pmapper/tmp/232b0120d63e33d772a56e1eab0447a91173968257075410600.png
 HTTP/1.1" 404 284
[...]
////////
REMIGE-DEBIAN:/# cat /usr/local/logs/error_log  
[nothing]
////////

what else ? 
I try to generate a output picture with the shp2img mapserver tool :

////////
REMIGE-DEBIAN:/# /usr/local/src/mapserver-4.10.0/shp2img -m 
/var/local/httpdata/pmapper/config/default/pmapper_demo.map -o 
/var/local/httpdata/pmapper/tmp/output.png
[ok, no error or warning]
///////
REMIGE-DEBIAN:/# ls -l /var/local/httpdata/pmapper/tmp/
total 3
-rw-r--r--  1 root root 2337 Mar 15 15:47 output.png
///////

Ok, the output file is created.

If i download this file to see, it's not a completly correct file : no shape, 
no boundaries, nothing except the scalebar ... 

I attach the output to my post.



Lot of thanks,

Best regards,
Norbert

Le jeudi 15 mars 2007 à 15:03 +0100, Armin Burger a écrit :
> you probably have wrong entries for IMAGEPATH under the WEB tag. This must be 
> the absolute path on your file system and the IMAGEURL must correspond to it 
> as the Web Location for your site pointing to the same directory. 
> 
> see http://mapserver.gis.umn.edu/docs/reference/mapfile/web
> 
> I would recommend to test the map file also with either MS CGI interface or a 
> simple script like the test_mapfile.phtml from the p.mapper /util directory.
> 
> armin
> 
> > [pmapper-users] Black screen
> 
> > Hi Pmapper users,
> > 
> > I try to use mapserver in a web server context. I try 2 interfaces :
> > ka-map and p.mapper.
> > With twice i have the same problem : no map images are displayed.
> > 
> > Here my configuration :
> > 
> > a Debian "stable" server, with :
> > 
> > apache 2.2.4
> > PHP 5.2.0
> > Proj 4.5.0
> > Geo 3.0.0rc3
> > Gdal 1.4.0
> > MapServer 4.10.0
> > 
> > All of this applications/libraries are hand compiled (src => ./configure
> > & make ) without problem and each one was tested and work.
> > 
> > I've download both last K-map and last p.mapper web interfaces
> > 
> > when I try to use the mapserver tool shp2img to proceed a .map file, the
> > result is correct and create a good .PNG picture.
> > 
> > With each web interface, the interface is correctly displayed
> > (icons, ...) but no map are visible. When I look on temporary folder
> > where pictures from the map are stored it's ok, images are correct.
> > If I look on the apache and PHP error log file, no error are reporting.
> > 
> > My question is : can I have the certitude with the shp2img test that the
> > Mapserver configuration is correct ?
> > 
> > Where I must have a look to detect the origin of my problem ?
> > 
> > Do you have an idea ?
> > 
> > thanks !
> > 
> > Norbert



________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
http://www.eset.com

Attachment: output.png
Description: PNG image

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to