design-automation/houdarcs

Reading geojson with Point features

Opened this issue · 0 comments

The geojson reader does not read "Point" features as is. The problem in the python script is twofold.

  1. In create_attribs() there are a couple of instances of "point_attribs" which should be changed to "attribs_points"

  2. set attribs() only tries to set Houdini primitive attributes, so I changed

attrib = attribs_prims[key]

to

if feature.geometry.type in ["Point", "MultiPoint"]:
attrib = attribs_points[key]
else:
attrib = attribs_prims[key]