artemp/mapnik — Issue #767: Can't create Feature with 'id' in attributes
Author: artemp
Created: 2011-10-11 16:35:52+00:00
State: open
Labels: Core_Library

When using an in-memory datasource, a Feature should be able to have whatever attributes we want to pass it.

However, since it has a required 'id' argument and the attributes are passed as **kwargs to the constructor, it's impossible to have an 'id' attribute.

{{{
TypeError: __init__() got multiple values for keyword argument 'id'
}}}

Encountered at https://github.com/thjc/mapnik-svg/blob/master/bindings/python/mapnik/printing.py#L957 , though I'm pretty sure the same issue exists with the svn trunk.