I am trying to generate a 3D model of a city using following data set with .shp file:
I tried to import the .shp file using ‘SHP Import’ component and Heron plugin and it seems to import points correctly but when I try to join the feature points in Heron component with polyline it says “insufficient points for a polyline” and with 'Import SHP" it joins the points in a seemingly random way, not forming building outlines.
What am I missing or maybe I should use other data files that came together with the .shp file (you can refer to the dropbox link)
Hi and welcome!
You can make it easier for others to help you if you attach your Grasshopper file. People aren’t necessarily interested in installing plug-ins like Heron just to be able to check your file, so make sure to internalize the output of plug-in components. You can do that, for example, this way:
Generally, that indicates that the input into the PolyLine component consists of a single point (or, in your case, a list of single points). Flattening will put all those points into the same list and a polyline will be able to be generated. But that probably just gets you into the issue that you have with the ImportSHP component. I am not familiar with the shape file format and don’t know if there are different ways of writing such data. Perhaps someone else knows more about this…
-wim