Ticket #111 (closed defect: duplicate)
memory_dataset mostly broken (patch needed for simple data-point display)
| Reported by: | lwu | Owned by: | artem |
|---|---|---|---|
| Priority: | critical (top) | Milestone: | 0.6.0 |
| Component: | Core Library | Version: | SVN Trunk |
| Severity: | Critical | Keywords: | |
| Cc: | springmeyer | Patch Needs Improvement: | no |
| Needs Docmentation: | no | Has Patch?: | yes |
| Design Decision Needed: | yes |
Description
In order to implement a simple point_datasource class, one may inherit publicly from memory_datasource.
For example, like so: http://gist.github.com/6150
however, this code relies on the mapnik::memory_datasource to actually do what it's supposed to, that is, provide a query method via memory_datasource::features(const query& q).
Feature query is implemented in terms of mapnik::memory_featureset(), but the next() iterator functionality was commented out a year ago, most likely due to geometric data structure re-structuring.
The patch should be attached. This has been tested to work, and to support the use case of point_datasource (as mentioned previously).
