Skip to content

AttributeError: 'dict' object has no attribute 'geometry #158

Answered by hugoledoux
AdrianKriger asked this question in Q&A
Discussion options

You must be logged in to vote

get_cityobjects() returns all the objects, so you need to specify which one (even if only one)

cm = [cityjson.load(path=file]]
rds = cm.get_cityobjects(id='1000004')
rds['1000004'].geometry

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AdrianKriger
Comment options

@hugoledoux
Comment options

@AdrianKriger
Comment options

@hugoledoux
Comment options

@AdrianKriger
Comment options

Answer selected by AdrianKriger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants