[Geomoose-users] GeoMoose 2 and PHP requirement

Brent Fraser bfraser at geoanalytic.com
Wed May 6 11:50:49 EDT 2009


   One thing I like about GeoMoose 1.6.1 is that PHP is optional (if you want the advanced features of printing, buffering, and selection, you'll need to get it working).  I could render my  layers, pan/zoom, etc, all without PHP setup on the server.


  It looks like PHP is now mandatory with GeoMoose2.  The main culprits are htdocs\geomoose\main.js:57:     
      OpenLayers.loadURL('php/getmapbook.php', {}, {}, onLoadedMapbook);

and php/getmapbook.php:
      header('Content-type: application/xml;text/xml');
      $mapbook = getMapbook();
      print $mapbook->saveXML();

where getMapbook() is defined as:
	$mapbook->load('../../conf/'.$CONFIGURATION['mapbook']);

which basically sends the mapbook declared in the settings.ini to the browser as XML.

For those of us implementing using IIS, or implementing GeoMoose for the first time, it can be a major pain just trying to get to the "Hello World" stage. 


   Some recommendations:

1. Make the getmapbook url configurable (so I can do 'asp/getmapbook.asp', or use python, perl, etc).  Or can it be defaulted to a simple 'htdocs/mapbook.xml' url?

2. Make sure you document that PHP is now a requirement of GeoMoose2.

Thanks!
Brent Fraser




More information about the Geomoose-users mailing list