[Geomoose-users] Multiple Mapbook.xml
Kevin Grootendorst
kgrootendorst at gmail.com
Mon Nov 21 18:57:28 PST 2016
Hello,
I just wanted to close the loop on this discussion and share what resolved
my latest problem.
I had been having an issue with data not drawing properly in multiple
mapbooks
My secondary GeoMoose site featured data request URL's like this:
www.mysite.com/*geomoose*/FORMAT=image%2Fpng&MAP.....
But I needed it be more like this:
www.mysite.com/*cgi-bin/mapserv*?FORMAT=image%2Fpng&MAP....
So my broken URL was missing '*cgi-bin/mapserv'*
My secondary application points to a php file upon loading (
www.mysite.ca/geomoose/SecondarySite.php), which in turn points to a
settings ini file (settings_SecondarySite.ini)
The ini file is a copy of 'settings.ini' and was constructed following
documentation previously mentioned in this thread.
Anyways, my 'settings_SecondarySite.ini' points to the location of the
secondary mapbook (mapbook=mapbook_Secondary.xml). It is in this file,
under the [paths] section, that I had to uncomment the mapserver_url and
provide the right location:
[paths]
server_name=localhost
; These are example settings, of note:
; Do NOT forget trailing "/" in the paths!
; PATHS SHOULD BE SETTING IN local_settings.ini
;root=/Users/ducky/Projects/GeoMOOSE/trunk/maps/
;mapserver_url=/mapserver/cgi-bin/mapserv
*mapserver_url=/cgi-bin/mapserv*
;temp=/tmp/out/
My secondary site now functions as expected, and my URLs are properly
constructed.
I hope this may help someone someday.
Cheers.
Kevin
On Thu, Nov 17, 2016 at 9:13 AM, James Klassen <klassen.js at gmail.com> wrote:
> There are two options buult into GeoMoose:
>
> A partial option (works for the html/js part of GeoMoose only, not the PHP
> services) is to add a
>
> ?mapbook=url-to-mapbook.xml
>
> to the GeoMoose URL.
>
> The other option is to modify getmapbook.php (maybe the actual function is
> in config.php, it isn't in front of me) to be aware of the user that is
> logged in and return the appropriate mapbook. One of the reasons
> getmapbook.php exists is to create a spot where people could hook in this
> type of functionality.
>
> IIRC a couple of the PHP services that need mapbook data also use this
> method so they should keep working.
>
> On Nov 16, 2016 13:59, "Kevin Grootendorst" <kgrootendorst at gmail.com>
> wrote:
>
>> Hello users, I'm looking to create multiple GeoMoose sites within the
>> same GeoMoose installation.
>> I see that Mapbook.xml is referenced by 'settings.ini' which in turn is
>> referenced by 'config.php'.
>> I would like to be able to have User A hit Mapbook_A.xml, User B hit
>> Mapbook_B.xml, etc.
>> Can anyone shed light on how to accomplish this. I didn't notice
>> anything in the documentation(?).
>> Using GeoMoose 2.8.1.
>> Thanks, Kevin
>>
>> _______________________________________________
>> Geomoose-users mailing list
>> Geomoose-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20161121/4229e83e/attachment.html>
More information about the Geomoose-users
mailing list