<div dir="ltr"><div><div><div><div><font><br></font></div><font>Hello,<br><br></font></div><font>I'm not sure which wiki page you are referring to but it might be out of date. Perhaps you can share the URL and we can confirm if the contents are current or not?<br><br>It has been some time since I tried to use multiple mapbooks (GM 2.6). But when I did, I was successful by using the method outlined below. You can try and see if you can get it to work with 2.7.x.<br><br>Below the instructions, I will also paste the text of the "config.php" file that is mentioned,<br><br></font></div><div><font>good luck!<br></font></div><div><font><br></font></div><font>Tanya<br><br></font></div><font>------------------ fwd ------------------------ > ><br><br><br>

</font><p class="MsoNormal"><font><b><span>Modification to use multiple mapbooks</span></b></font></p><font>

</font><p class="MsoNormal"><font> </font></p><font>

</font><p class="" style><font> <span>1.<span style="font-family:"Times New Roman";font-style:normal;font-weight:normal;line-height:normal;font-size-adjust:none;font-stretch:normal;font-variant:normal">    </span></span>Replace php/config.php with updated version.  This
file starts a PHP session and looks at a session variable passed by the HTML to
set which settings.ini file to use.<span>  </span></font></p><font>

</font><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font><span>2.<span style="font-family:"Times New Roman";font-style:normal;font-weight:normal;line-height:normal;font-size-adjust:none;font-stretch:normal;font-variant:normal">     </span></span>In the config folder, make copies of settings.ini and
mapbook.xml with new names and leave them in the config folder.   For
example, they could be called “internal_settings.ini” and
“internal_mapbook.xml”.</font></p><font>

</font><font>

</font><p class="" style><font><span>3.<span style="font-family:"Times New Roman";font-style:normal;font-weight:normal;line-height:normal;font-size-adjust:none;font-stretch:normal;font-variant:normal">     </span></span>Make a copy of geomoose.html (the main HTML page) and
re-name it, for example “internal.php” (note the PHP extension).  </font></p><font>

</font><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font><span>4.<span style="font-family:"Times New Roman";font-style:normal;font-weight:normal;line-height:normal;font-size-adjust:none;font-stretch:normal;font-variant:normal">    </span></span>Open “internal.php” and add the following lines to the
very top of the file:<br><br></font></p><div style="margin-left:40px"><font><?php<br>        session_start();

</font></div><p style="margin-left:40px" class="MsoNormal"><font>        
$_SESSION['settings'] = 'internal_settings.ini';</font></p><div style="margin-left:40px"><font>?>

<br><br></font></div><p class="MsoNormal"><font>Note the value for settings is “internal_settings.ini” – this will be what you
called the file in step </font></p><font>

</font><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font> <span>5.<span style="font-family:"Times New Roman";font-style:normal;font-weight:normal;line-height:normal;font-size-adjust:none;font-stretch:normal;font-variant:normal">    </span></span>Open “internal_settings.ini” and set the mapbook name
to “internal_mapbook.ini”</font></p><font>

</font><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font><span></span>Give it a try.  You can also use different CSS
files by specifying them in the internal.php file. </font></p><p class="" style="margin-bottom:0.0001pt;line-height:normal"><br></p><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font size="1">+++++++++++++++++++++++++++++++++++++++</font></p><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font size="1">contents of new 'config.php' below<br></font></p><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font size="1">+++++++++++++++++++++++++++++++++++++++</font><br></p><p class="" style="margin-bottom:0.0001pt;line-height:normal"><font size="1"><?php<br><br>session_start();<br><br>/*Copyright (c) 2009, Dan "Ducky" Little & GeoMOOSE.org<br><br>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:<br><br>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<br><br>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/<br><br>#<br># This is meant to allow specific environmental includes for<br># GeoMOOSE 2 PHP Services.  Substantive configuraiton options<br># should be added to settings.ini<br>#<br><br>/* Check for the required libraries<br> * g2/curl are used for printing. If you're not using printing<br> * you can avoid using these modules.<br> *<br> * mapscript and dbase are used for most operations using them<br> * cannot be avoided<br> */<br><br>if(!extension_loaded('gd') && !extension_loaded('gd2')) {<br>    dl('php_gd2.'.PHP_SHLIB_SUFFIX);<br>}<br><br>if(!extension_loaded('curl')) {<br>    dl('php_curl.'.PHP_SHLIB_SUFFIX);<br>}<br><br>if(!extension_loaded('MapScript')) {<br>    dl('php_mapscript.'.PHP_SHLIB_SUFFIX);<br>}<br><br>if(!extension_loaded('dbase')) {<br>    dl('php_dbase.'.PHP_SHLIB_SUFFIX);<br>}<br><br><br># Load the configration file<br>$settings = "settings.ini";<br><br>if($_SESSION['settings']) {<br>    $settings = $_SESSION['settings'];<br>}<br><br>$CONFIGURATION = parse_ini_file('../../conf/' . $settings);<br><br>function getMapbook() {<br>    global $CONFIGURATION;<br>    $mapbook = new DOMDocument();<br>    $mapbook->load('../../conf/'.$CONFIGURATION['mapbook']);<br>    return $mapbook;<br>}<br><br>function getUsername() {<br>    session_start();<br>    return $_SESSION['username'];<br>}<br><br><br># Select Functionality ONLY works for Mapserver Layers<br>function getMapfile($mb, $layerName) {<br>    $services = $mb->getElementsByTagName('map-source');<br>    $mapfiles = array();<br>    for($i = 0; $i < $services->length; $i++) {<br>        $service = $services->item($i);<br>        $root = $service->getAttribute('name');<br>        $layers = $service->getElementsByTagName('layer');<br>        for($l = 0; $l < $layers->length; $l++) {<br>            $layer = $layers->item($l);<br>            $path = $root.'/'.$layer->getAttribute('name');<br>            if($path == $layerName) {<br>                return $service->getElementsByTagName('file')->item(0)->nodeValue;<br>            }<br>        }<br>    }<br>    return null;<br>}<br><br># get a source based on it's name<br>function getMapSource($mb, $layerName) {<br>    $services = $mb->getElementsByTagName('map-source');<br>    $mapfiles = array();<br>    for($i = 0; $i < $services->length; $i++) {<br>        if($services->item($i)->getAttribute('name') == $layerName) {<br>            return $services->item($i);<br>        }<br>    }<br>    return null;<br>}<br><br>//LK Get a CONFIGURATION parameter from the Mapbook<br>function getParam($mb, $paramTest) {<br>    $paramValue = "null";<br>    $configuration = $mb->getElementsByTagName('configuration');<br>    $params = $configuration->item(0)->getElementsByTagName('param');<br>    for($i = 0; $i < $params->length; $i++) {<br>        $param = $params->item($i);<br>        if($param->getAttribute("name") == $paramTest) {<br>            $paramValue = $param->firstChild->nodeValue;<br>        }<br>    }<br>    return $paramValue;<br>}<br>?></font><br><br></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 11:16 AM, biswajit giri <span dir="ltr"><<a href="mailto:biswajit_giri@yahoo.com" target="_blank">biswajit_giri@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div dir="ltr">All the users</div><div dir="ltr">Really need all of your help.</div><div dir="ltr">I am using geomoose 2.7.1-ms4w. the problem is I cannot use multiple mapbooks using multiple settings.ini files as mentioned in the geomoose wiki.</div><div dir="ltr">Even I tried alternative options such as avoid the getmapbook.php file then send the mapbook.xml file as url as mentioned by some users. it is fine but php services are not working.</div><div dir="ltr">Please somebody help me to overcome this problem. personally I like the geomoose wiki solution but helpless.</div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br></div><div dir="ltr">Biswajit Giri</div><div dir="ltr">CAD centre</div><div dir="ltr">Jadavpur University</div><div dir="ltr">Kolkata, India<br></div></font></span></div><br>_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br></blockquote></div><br></div>