Open pserwylo opened 10 years ago
Hmmm.... there are possibly a few issues here.
It returns "quintile" instead of "value" in the properties. It takes values 1-5, and 0 for errors). It hasn't been fully tested. Do we need a test environment? I might raise this as an issue as well.
Oh, I didn't realise that we could return the quintiles. That's perfect and solves my problems. In the future it would be nice to allow a sort of "drill down" when you click on a LGA. In that case, then perhaps a secondary request for more details may be worthwhile.
Currently I believe it is using hard coded values which worked for the "total population" model we used during govhack.
It would help if the server includes this info in the JSON it sends back with the model/name description. That way, additional ajax requests are not required.
It would be perfect if it came back with the geojson data, because that is where the actual attributes live. However, this is more difficult than sending it with the name/description. The reason is that geoserver sends back the geojson data according to a specific query that only returns the geometry (and attributes). I'm not sure if it is even possible to make that response also include summary statistics. As such, the data will probably be easier to get from a request to django.