[Cartoweb-users] Geostat error going from close zoom to Full
Extent
Damien Corpataux
damien.corpataux at camptocamp.com
Thu Jul 31 05:33:55 EDT 2008
Hello,
Thanks for finding out these issues.
I just fixed the choroplethDataFromCurrentBoundingBox = true issue in
CVS. If you're using it, you can either update your CW3 or remove line
271 in ClientGeostat.php
The following patch fixes the "blank shapes" issue. It will be committed
by the end of the day.
Regards,
Damien
### Eclipse Workspace Patch 1.0
#P cartoweb3_HEAD
Index: plugins/geostat/client/ClientGeostat.php
===================================================================
RCS file:
/var/lib/cvs/projects/cw3/cartoweb3/plugins/geostat/client/ClientGeostat.php,v
retrieving revision 1.12
diff -u -r1.12 ClientGeostat.php
--- plugins/geostat/client/ClientGeostat.php 31 Jul 2008 09:12:28
-0000 1.12
+++ plugins/geostat/client/ClientGeostat.php 31 Jul 2008 09:29:58 -0000
@@ -110,11 +110,13 @@
*/
public function createSession(MapInfo $mapInfo,
InitialMapState $initialMapState) {
+
$this->geostatClientState = new GeostatClientState();
$this->geostatClientState->choroplethParams =
new GeostatChoropleth();
- $this->geostatClientState->choroplethParams->bbox = new Bbox();
+ $this->geostatClientState->choroplethParams->bbox =
+ $initialMapState->location->bbox;
$this->geostatClientState->choroplethParams->classificationMethod =
$this->getConfig()->choroplethClassifMethodDefault;
Albert Casanovas wrote:
> Hi,
>
> In the demoGeostat.php, seems to lack some parts of the image without
> painting when doing a Full Extent, we have tested it on the one in the
> web site (http://www.cartoweb.org/demos/demoGeostat.php) and the
> problem is the same, you have to follow the following sequence:
>
> 1. Do a close zoom and from there apply a Choropleth.
> 2. Do zoom out or Full extent and some of the regions will appear white.
>
> We checked the parameter /choroplethDataFromCurrentBoundingBox /which
> is set to false, so apparently is correct.
> Another problem was when we change this parameter to true, produces an
> error:
>
> 1
> *Fatal error*: Uncaught exception 'CartocommonException' with message
> 'Error [2, Cannot modify header information - headers already sent by
> (output started at
> C:\ms4w\apps\cartoweb3\projects\agroGeo\plugins\geostat\client\ClientGeostat.php:295),
> C:\ms4w\apps\cartoweb3\client\FormRenderer.php, 460] Backtrace: file:
> UNKNOWN - UNKNOWN call: Common::cartowebErrorHandler(2, "Cannot modify
> header information - headers already sent by (outp...",
> "C:\ms4w\apps\cartoweb3\client\FormRenderer.php", 460, Array(1)) file:
> 460 - C:\ms4w\apps\cartoweb3\client\FormRenderer.php call:
> header("HTTP/1.1 500 Internal Server Error") file: 1267 -
> C:\ms4w\apps\cartoweb3\client\Cartoclient.php call:
> FormRenderer->showFailure(Object(CartocommonException)) file: 33 -
> C:\ms4w\apps\cartoweb3\htdocs\client.php call: Cartoclient->main()
> file: 3 - C:\ms4w\apps\cartoweb3\htdocs\agroGeo.php call:
> require_once("C:\ms4w\apps\cartoweb3\htdocs\client.php") ' in
> C:\ms4w\apps\cartoweb3\common\Common.php:301 Stack trace: #0 [internal
> function]: Common::cartow in
> *C:\ms4w\apps\cartoweb3\common\Common.php* on line *301*
> **
> **
> *Regards,*
> *Albert*
> **
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
--
Camptocamp SA
Damien Corpataux
PSE A
CH-1015 Lausanne
+41 21 619 10 22 (Direct)
+41 21 619 10 10 (Centrale)
+41 21 619 10 00 (Fax)
P Please consider the environment
Do you really need to print this email?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080731/6b836236/attachment.html
More information about the Cartoweb-users
mailing list