Grasshopper

algorithmic modeling for Rhino

When I try to use the GIS components from github, I can only read certain shp files. Others return the runtime error below. I'm not quite sure what this error indicates. Any help would be appreciated.

Views: 574

Replies to This Discussion

Hi Nate,

The error means that a character of the dbf table can't be read by python. Python works with ASCII characters and if a character of the dbf is non-ASCII, the component will throw an error. This is why some shp files work and some don't. 

I will fix the error ASAP and upload some of the new components we've been working on. The new finches component doesn't have any python library dependencies. This means that you don't have to copy and paste any script libraries and reference them in GH (which I think confuses a lot of people).

Also, would you send me the shp files you were trying to import? I'll debug with them. You can email them to ce.sandoval@berkeley.edu.

Hi Nate,

I fixed it. It was a different problem, some of the register of the dbf didn't have a needed field, so I just added an exception. I'm attaching the revised component as a different discussion, which doesn't have any python library dependencies, meaning that you don't need to reference the file path of the libraries, which confuses a lot of people. The new component also imports dbf files with non-ASCII characters.

Hope this helps, let me know if there are any other bugs. This helps us debug the components.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service