<div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)">About slow printing,<br></div><div class="gmail_default" style="color:rgb(0,0,0)"><br>its PHP issu.<br></div><div class="gmail_default" style="color:rgb(0,0,0)">Try to change "server_name" from localhost to 127.0.0.1<br></div><div class="gmail_default" style="color:rgb(0,0,0)">in settings.ini<br><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Sometimes it helps<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 March 2015 at 20:52, <span dir="ltr"><<a href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank">geomoose-users-request@lists.osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Geomoose-users mailing list submissions to<br>
<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:geomoose-users-request@lists.osgeo.org">geomoose-users-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:geomoose-users-owner@lists.osgeo.org">geomoose-users-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Geomoose-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: can not use multiple mapbook.xml files and php services<br>
(TC Haddad)<br>
2. Printing timeout (Johnson, Jeremy)<br>
3. Re: Printing timeout (Dan Little)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 18 Mar 2015 12:28:13 -0700<br>
From: TC Haddad <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>><br>
To: biswajit giri <<a href="mailto:biswajit_giri@yahoo.com">biswajit_giri@yahoo.com</a>><br>
Cc: "<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>" <<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>><br>
Subject: Re: [Geomoose-users] can not use multiple mapbook.xml files<br>
and php services<br>
Message-ID:<br>
<CAFVrPyikX4BrphQztruNu3AJ183zHxcxowxihcmarGH=<a href="mailto:EcboWw@mail.gmail.com">EcboWw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello,<br>
<br>
I'm not sure which wiki page you are referring to but it might be out of<br>
date. Perhaps you can share the URL and we can confirm if the contents are<br>
current or not?<br>
<br>
It has been some time since I tried to use multiple mapbooks (GM 2.6). But<br>
when I did, I was successful by using the method outlined below. You can<br>
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<br>
that is mentioned,<br>
<br>
good luck!<br>
<br>
Tanya<br>
<br>
------------------ fwd ------------------------ > ><br>
<br>
<br>
*Modification to use multiple mapbooks*<br>
<br>
<br>
<br>
1. Replace php/config.php with updated version. This file starts a PHP<br>
session and looks at a session variable passed by the HTML to set which<br>
settings.ini file to use.<br>
<br>
2. In the config folder, make copies of settings.ini and mapbook.xml<br>
with new names and leave them in the config folder. For example, they<br>
could be called ?internal_settings.ini? and ?internal_mapbook.xml?.<br>
<br>
3. Make a copy of geomoose.html (the main HTML page) and re-name it,<br>
for example ?internal.php? (note the PHP extension).<br>
<br>
4. Open ?internal.php? and add the following lines to the very top of<br>
the file:<br>
<br>
<?php<br>
session_start();<br>
<br>
$_SESSION['settings'] = 'internal_settings.ini';<br>
?><br>
<br>
Note the value for settings is ?internal_settings.ini? ? this will be what<br>
you called the file in step<br>
<br>
5. Open ?internal_settings.ini? and set the mapbook name to<br>
?internal_mapbook.ini?<br>
<br>
Give it a try. You can also use different CSS files by specifying them in<br>
the internal.php file.<br>
<br>
<br>
+++++++++++++++++++++++++++++++++++++++<br>
<br>
contents of new 'config.php' below<br>
<br>
+++++++++++++++++++++++++++++++++++++++<br>
<br>
<?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<br>
copy of this software and associated documentation files (the "Software"),<br>
to deal in the Software without restriction, including without limitation<br>
the rights to use, copy, modify, merge, publish, distribute, sublicense,<br>
and/or sell copies of the Software, and to permit persons to whom the<br>
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<br>
all copies or substantial portions of the Software.<br>
<br>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br>
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br>
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<br>
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<br>
$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>
?><br>
<br>
<br>
On Tue, Mar 3, 2015 at 11:16 AM, biswajit giri <<a href="mailto:biswajit_giri@yahoo.com">biswajit_giri@yahoo.com</a>><br>
wrote:<br>
<br>
> All the users<br>
> Really need all of your help.<br>
> I am using geomoose 2.7.1-ms4w. the problem is I cannot use multiple<br>
> mapbooks using multiple settings.ini files as mentioned in the geomoose<br>
> wiki.<br>
> Even I tried alternative options such as avoid the getmapbook.php file<br>
> then send the mapbook.xml file as url as mentioned by some users. it is<br>
> fine but php services are not working.<br>
> Please somebody help me to overcome this problem. personally I like the<br>
> geomoose wiki solution but helpless.<br>
><br>
> Biswajit Giri<br>
> CAD centre<br>
> Jadavpur University<br>
> Kolkata, India<br>
><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>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150318/8c1147fa/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150318/8c1147fa/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 18 Mar 2015 14:26:03 -0500<br>
From: "Johnson, Jeremy" <<a href="mailto:JJohnson@ci.blaine.mn.us">JJohnson@ci.blaine.mn.us</a>><br>
To: <<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>><br>
Subject: [Geomoose-users] Printing timeout<br>
Message-ID:<br>
<<a href="mailto:9FA30ED3B4259844981A874EAB65D7B40A3AFA98@chexch3.blainech.ci.blaine.mn.us">9FA30ED3B4259844981A874EAB65D7B40A3AFA98@chexch3.blainech.ci.blaine.mn.us</a>><br>
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
I am currently using Geomoose 2.6 and since I upgraded, it seems it is<br>
taking longer for the printing service to generate the highest quality<br>
prints. Even without aerial photos, just parcel lines, it can take up<br>
to 30 seconds to get the output option to pop up. I went into the<br>
<a href="http://php.in" target="_blank">php.in</a> to adjust the max_execution_time to 60 seconds, for a temporary<br>
fix (I don't think I want this to stay there for end user experience).<br>
Any suggestions? Thank you.<br>
<br>
<br>
<br>
Jeremy Johnson, GISP<br>
<br>
G.I.S. Coordinator<br>
<br>
Certified Crime Analyst<br>
<br>
City of Blaine<br>
<br>
10801 Town Square Dr Ne<br>
<br>
Blaine, MN 55449<br>
<br>
(763) 717-2639<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150318/ab7f2649/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150318/ab7f2649/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 18 Mar 2015 14:52:50 -0500<br>
From: Dan Little <<a href="mailto:theduckylittle@gmail.com">theduckylittle@gmail.com</a>><br>
To: "Johnson, Jeremy" <<a href="mailto:JJohnson@ci.blaine.mn.us">JJohnson@ci.blaine.mn.us</a>><br>
Cc: GeoMOOSE Users List <<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>><br>
Subject: Re: [Geomoose-users] Printing timeout<br>
Message-ID:<br>
<<a href="mailto:CABqPoBYiw4NEoGJi%2BPhmc9xe5W%2BXW_Sm1Bo%2BkRq4ttjmz1i_tQ@mail.gmail.com">CABqPoBYiw4NEoGJi+Phmc9xe5W+XW_Sm1Bo+kRq4ttjmz1i_tQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
I don't have any immediate ideas on this. Can you file a GitHub ticket?<br>
<br>
On Wed, Mar 18, 2015 at 2:26 PM, Johnson, Jeremy<br>
<<a href="mailto:JJohnson@ci.blaine.mn.us">JJohnson@ci.blaine.mn.us</a>> wrote:<br>
> I am currently using Geomoose 2.6 and since I upgraded, it seems it is<br>
> taking longer for the printing service to generate the highest quality<br>
> prints. Even without aerial photos, just parcel lines, it can take up to 30<br>
> seconds to get the output option to pop up. I went into the <a href="http://php.in" target="_blank">php.in</a> to<br>
> adjust the max_execution_time to 60 seconds, for a temporary fix (I don?t<br>
> think I want this to stay there for end user experience). Any suggestions?<br>
> Thank you.<br>
><br>
><br>
><br>
> Jeremy Johnson, GISP<br>
><br>
> G.I.S. Coordinator<br>
><br>
> Certified Crime Analyst<br>
><br>
> City of Blaine<br>
><br>
> 10801 Town Square Dr Ne<br>
><br>
> Blaine, MN 55449<br>
><br>
> (763) 717-2639<br>
><br>
><br>
><br>
><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>
<br>
<br>
------------------------------<br>
<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>
<br>
End of Geomoose-users Digest, Vol 44, Issue 10<br>
**********************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Michał Chmielewski<br><a href="mailto:mich.chmielewski@gmail.com" target="_blank">mich.chmielewski@gmail.com</a></div>
</div>