A national website here in New Zealand makes the polygon (outline) of buildings available to download as a CSV. I have used the “Read File” node and several attempts to use the Sets > Text nodes, to extract and split the text to get the coordinates from each row. I’m getting close but after several “text operations” I end up losing the grouping of the coordinates. So rather than groups of points to make up a poly, I’m getting one long list of points.
Any tips or suggestions? Am I on the right path using the Sets > Text method?
My end result is to use the below setup along with some LIDAR data to connect to Archicad and generate surrounding areas for projects.
nz-building-outlines.csv (29.2 KB)
Here is the GH file as I have it so far.
Basic Point Joining.gh (28.9 KB)
Thanks Joseph!
That’s exactly what I’m after.
I need to learn about “Trees”.
Once I’ve got the end result I’m after (modeled neighborhood in Archicad), I’ll post the result back here.
If you’re open to using add-ins, Heron can read this CSV file with it’s ImportVector component because the polygons strings are formatted as Well Known Text (WKT).
20220919_NewZealandCSV.gh (19.7 KB)
-Brian
1 Like
Hi Brian, thanks for that.
That looks really powerful.
I’ve installed Heron and will need to do a bit of experimentation to understand further.
Looking at some of the nodes, I wonder if a GIS file would be better to utilize as opposed to a CSV?
At the time I went down the path of CSV as I knew how to manipulate in Excel.

This may be a question for Archicad (Graphisoft), when opening the live connection, I get the below red balloon notification.
Shapefiles are a good option for a vector source from the website. What is the file type you are plugging into filePath from the “live” connection?