AttributeError: 'dict' object has no attribute 'geometry #158
Answered
by
hugoledoux
AdrianKriger
asked this question in
Q&A
-
Happy New Year. With: cm = [cityjson.load(path=file]]
rds = cm.get_cityobjects(id='1000004')
rds.geometry
Traceback (most recent call last):
Cell In[131], line 5
rds.geometry
AttributeError: 'dict' object has no attribute 'geometry' When I parse the city model through val3dity; it returns a 102 CONSECUTIVE_POINTS_SAME error for a few road objects. file -> here |
Beta Was this translation helpful? Give feedback.
Answered by
hugoledoux
Jan 17, 2023
Replies: 1 comment 5 replies
-
cm = [cityjson.load(path=file]]
rds = cm.get_cityobjects(id='1000004')
rds['1000004'].geometry |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
AdrianKriger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
get_cityobjects()
returns all the objects, so you need to specify which one (even if only one)