Ticket #28 (closed defect: fixed)
Implement expected interface for Feature.properties
| Reported by: | artem | Owned by: | artem |
|---|---|---|---|
| Priority: | Milestone: | 0.5.0 | |
| Component: | Boost.Python Binding | Version: | SVN Trunk |
| Severity: | Normal | Keywords: | map_indexing_suite to_python |
| Cc: | Patch Needs Improvement: | ||
| Needs Docmentation: | Has Patch?: | ||
| Design Decision Needed: |
Description
for f in ds.features_at_point(merc):
print f
<mapnik._mapnik.Feature object at 0xb7f163ac>
on that, I'd expect to be able to call:
for (k,v) in f.properties:
but I can't. Also, if I do:
f.propertiestype?
I get back a mapnik._mapnik.Value object, and not a native python object as I'd expect
Also, if I do
for prop in f.properties:
you have to call key() and value(), it'd be good if there were python attributes for them
Nick
Change History
Note: See
TracTickets for help on using
tickets.
