Fuente: http://adf.ly/1ee6im
p.mapper + fedora 11
by Rodolfo Alcazar — last modified Oct 26, 2009 08:42 PM
PMapper, http://www.pmapper.net/ is a GIS presentation layer which accesses MapServer via php-mapscript. Fedora 11 includes OpenLayers in its repos. The PMapper demo turns to be easy to install, and run. Any further development can be continued there.
Base software installation
# yum install php php-mapserver mapserver proj-epsgApache fixes
- .phtml files need to be handled by php:
# cat /etc/httpd/conf.d/php.conf ... AddHandler php5-script .php .phtml AddType text/html .php .phtml ...Logs
- p.mapper could handle logging
# touch /var/log/pm_debug.log # chmod 666 /var/log/pm_debug.log # service httpd restartDownload, unpack p.mapper last version
# mkdir /var/www/html/gis/ # cd /var/www/html/gis/ # wget "http://downloads.sourceforge.net/project/pmapper/p.mapper%204/4.0-beta2/pmapper-4.0-beta2.zip" # wget "http://downloads.sourceforge.net/project/pmapper/p.mapper%20demo%20data/p.mapper%20demo%20data%203/pmapper-demodata-3.zip" # unzip pmapper-4.0-beta2.zip # unzip pmapper-demodata-3.zipDemo Mapfile needs some fixing
# cat /var/www/html/gis/pmapper-4.0-beta2/config/default/pmapper_demo.map SHAPEPATH "../../../demodata" IMAGEPATH "/var/www/html/gis/tmp/" IMAGEURL "/gis/tmp/" # mkdir /var/www/html/gis/tmp # chown -R apache:apache /var/www/html/gis/Fontset
- If map displaying stills on "loading...", could be the fontsets (check logs). The cause: /var/www/html/gis/pmapper-4.0-beta2/config/common/fonts/'''msfontset.txt''' has upper+lowercase font names. Check if your fonts are ok on /var/www/html/gis/pmapper-4.0-beta2/config/common/fonts/
$ firefox http://127.0.0.1/gis/pmapper-4.0-beta2/map.phtmlError logging
# tail -f /var/log/pm_debug.log