<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We have included a new parameter in the geostat.ini
file which includes the SELECT to take the results from to paint the cloropeth.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We need to recover the parameter in the
ServerGeostat.php without sending it through the ClientGeostat.php generated
formular, so we need to pass it as the "layer" and "indicator" parameters are
passed.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The new parameter is "query" has been included in
the corresponding common/Geostat.php, the parsing of the ini file in the
ServerGeostat.php and other necessary places and we need to put it also in the
required parameters of the following handlePreDrawing function:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>public function handlePreDrawing($requ)
{</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
$this->geostatResult = new
GeostatResult();<BR>
$this->geostatResult->choroplethParams
=<BR>
$requ->choroplethParams;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
$this->log->debug('Drawing Geostat');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (
$requ->status == true
&&<BR>
$requ->choroplethParams->layer
&&<BR>
$requ->choroplethParams->layer != 'def'
&&<BR>
$requ->choroplethParams->indicator
&&<BR>
$requ->choroplethParams->indicator != 'def')
{<BR> try
{<BR>
$this->drawChoropleth($requ->choroplethParams);<BR>
} catch (Exception $e)
{<BR>
throw new CartoserverException("Cannot draw choropleth"
.<BR>
"\n" . $e->getMessage());</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
}<BR> } else
{<BR>
$this->geostatResult->choroplethDrawn =
false;<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> return
$this->geostatResult;<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The problem is that when we include the
lines</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$requ->choroplethParams->query
&&<BR>$requ->choroplethParams->query != 'def'
&&</FONT><BR></DIV>
<DIV><FONT face=Arial size=2>The application does an intern error which we cant
get any description but does not show any result, and if we dont include these
lines, the application goes normally but does not pass the content of the
variable.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks a lot,</FONT></DIV>
<DIV><FONT face=Arial size=2>Albert</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>