[Cartoweb-users] problem with geostat plugin

Daniel McInerney daniel.mcinerney at ucd.ie
Mon Mar 8 10:25:26 EST 2010


Thanks Oliver - restarting Apache worked and it
picks up the fields in the drop down menu. However,
when I click on 'Display Geostatistics' a message
box appears with 'An error occurred. Press OK to reload
this application'

The summary stats for the field aren't displayed
in the Configure Dataset window either?

Nothing is listed in the apache error log.


Daniel.


Oliver Christen wrote:
> hi
> 
> mmm, if cleaning the cache didnt help, I can only think about reseting 
> the session (add ?reset_session in your url) or even restarting apache.
> the content of the dropdown list is taken directly from the config file, 
> so even in there are no relation in your data, you should see the 
> attributs your listed.
> 
> if you feel like debugging a bit, you can add some print_r in 
> ClientGeostat.php on line 398 or so, just after
> $LayersChoroplethAttributes[$layer->msLayer] =
>                explode(',',$layer->choropleth_attribs);
> 
> print_r($LayersChoroplethAttributes[$layer->msLayer]);
> 
> or in ServerGeostat.php on line 337 or so, just after
> 
> $params->choropleth_attribs =
>                $layerConf->choropleth_attribs;
> 
> print_r($params->choropleth_attribs);
> or even
> print_r($conf);
> 
> so you know if the connfig paramters are being read and used as they 
> should.
> 
> regards
> Oliver
> 
>> Hi List,
>>
>> I've created a geostat project based
>> on the demoGeostat one. The mapping
>> interface works correctly, however, when
>> I select the layer from the drop-down menu
>> (Select Geographic Entities) no attributes
>> are listed within the 'Select Indicator'
>> drop-down menu.
>>
>>
>> The layer isn't listed in the layers.ini
>> file. The contents of the geostat.ini file
>> is below and the attributes are numeric fields
>> in a postgis table.
>>
>> I've run 'php cw3setup.php --clean' but it hasn't
>> helped unfortunately.
>>
>> Any suggestions appreciated.
>>
>> Thanks in advance.
>>
>> Daniel.
>>
>> ;geostat.ini
>> geostat.0.mslayer = Counties
>> geostat.0.label = "County Statistics"
>> geostat.0.choropleth = true
>> ; Warning this is case sensitive ! Do not put space between comma and
>> attribute !
>> geostat.0.choropleth_attribs = pop86,pop91
>> geostat.0.choropleth_attribs_label = "Pop86","Pop91"
>>
>>
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
> 


More information about the Cartoweb-users mailing list