Can't create Feature with 'id' in attributes #767

Open
artemp opened this Issue Oct 11, 2011 · 0 comments

Comments

Projects
None yet
2 participants
Owner

artemp commented Oct 11, 2011

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.

@ghost ghost assigned springmeyer Dec 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment