[Geomoose-users] GeoMoose 2 and PHP requirement

Brent Fraser bfraser at geoanalytic.com
Wed May 6 13:13:40 EDT 2009


Well the good news is that changing the URL to 'mapbook.xml' worked fine (after moving the file to htdocs folder).

The parcel and Airphoto layers display (and the performance is great!); dunno why the others don't display (but I'll work on that later).

Brent

Dan Little wrote:
> PHP Mapscript comes working out-of-the-box with MS4W and Apache ... so that's why we decided it was okay to go with this setup.  Then again, I'm pretty sure JimK has been patching the code everytime he gets it because he does not run PHP on his Linux bo
> xes.
> 
> 
> ----- Original Message ----
>> From: Brent Fraser <bfraser at geoanalytic.com>
>> To: Dan Little <danlittle at yahoo.com>
>> Cc: GeoMOOSE Users List <geomoose-users at lists.sourceforge.net>
>> Sent: Wednesday, May 6, 2009 11:56:19 AM
>> Subject: Re: [Geomoose-users] GeoMoose 2 and PHP requirement
>>
>> Dan,
>>
>> I like the plan to secure the xml file; I just wanted to make sure you 
>> appreciated how painful PHP (and PHP mapscript with IIS!) can be for some of us.
>>
>> If Beta 2 can have the same instant gratification as v1.6.1 ("first you install 
>> ms4w, then install GeoMoose, then click the demo url to see the map") that would 
>> be great!
>>
>> Keep up the good work!
>> Brent
>>
>>
>> Dan Little wrote:
>>> This is actually a component that we/I decided on for long term planning.
>>>
>>> On of the goals is to offer the ability to have "secured" Mapbooks out of the 
>> box with GeoMOOSE (this is probably a late-2.2 or early-2.4 feature).
>>> The method to the madness is that all functions that read the Mapbook 
>> (including the HTML/Javascript) would be required to use "getMapbook()."  The 
>> "getMapbook()" function will be the responsible for decoding any sort of 
>> security settings and then disse
>>> minating the appropriate information to all of the requestors.
>>>
>>> I will work on making this more configurable and document how to change it.
>>>
>>>
>>>
>>> ----- Original Message ----
>>>> From: Brent Fraser 
>>>> To: GeoMOOSE Users List 
>>>> Sent: Wednesday, May 6, 2009 10:50:49 AM
>>>> Subject: [Geomoose-users] GeoMoose 2 and PHP requirement
>>>>
>>>>    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
>>>>
>>>>
>> ------------------------------------------------------------------------------
>>>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>>>> production scanning environment may not be a perfect world - but thanks to
>>>> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
>>>> Series Scanner you'll get full speed at 300 dpi even with all image 
>> processing features enabled. http://p.sf.net/sfu/kodak-com
>>>> _______________________________________________
>>>> Geomoose-users mailing list
>>>> Geomoose-users at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>>>
>>>
>>>      
> 
> 
> 
>       
> 




More information about the Geomoose-users mailing list