Reading geojson with Point features
Opened this issue · 0 comments
eetumartola commented
The geojson reader does not read "Point" features as is. The problem in the python script is twofold.
-
In create_attribs() there are a couple of instances of "point_attribs" which should be changed to "attribs_points"
-
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]