Grasshopper

algorithmic modeling for Rhino

Demonstrating the Heron Shapefile Importer

This component allows you to import shapefiles and to locate and scale them in the Rhino/Grasshopper environment. Heron can be found at food4Rhino.

Views: 1666

Comment

You need to be a member of Grasshopper to add comments!

Join Grasshopper

Comment by Naveed Namaky on August 24, 2015 at 10:05am

That worked!

Thanks for following up!

Great tool

Comment by Brian Washburn on August 21, 2015 at 6:02pm

I think I found the problem.  The component is not reading open polylines (or wkblinestrings) correctly, but it does read closed polylines (or wkbpolylines) ok.  I have posted an update on food4rhino, let me know if the update works for you.  Thanks for reporting the bug!

Comment by Naveed Namaky on August 21, 2015 at 1:54pm

https://app.box.com/s/tuwsuovmcg94nd01933r2sxcliosfu6j

Above is a link to my grasshopper def

The rhino model is just a rectangle, so I didn't bother to include it.

Comment by Naveed Namaky on August 21, 2015 at 1:52pm

https://app.box.com/s/qli2s6i4dcpoe4jrfhez5wsummc1ughi

Above is a link to download the shp files reference in my grasshopper def, from my box. These are all publicly available datasets from datasf.org

Comment by Naveed Namaky on August 21, 2015 at 1:32pm

yes, the curve is planar and on the xy plane. In fact, the component works wonderfully with some shapefiles, and does not output values or feature points with others. I can't tell what the difference is between the files, in that they all open clearly and fine in ArcGIS.

Comment by Brian Washburn on August 21, 2015 at 11:00am

The component requires that the input boundary be flat to the XY plane.  Can you verify this is the case?

Comment by Naveed Namaky on August 21, 2015 at 10:34am

Hi guys,

I'm running into a similar problem.

The input boundary is completely enclosed within shpExtent; however, I'm not getting any data out of the values or feature points outputs. I've opened the file in ArcGIS and confirmed that all the content and data is there.

Is anyone else having this bug? Any advice?Thanks for your help!

Comment by Brian Washburn on July 29, 2015 at 12:32pm

It sounds like the input boundary may be outside of the shpExtent.  Make sure it is fully within the shpExtent.

Comment by Andrea Rossi on July 29, 2015 at 10:58am

Hi Brian,

Thanks for the tool, it is really amazing!

I am currently trying to import a .shp file containing just lines, no polygons (a river network from OpenStreetMaps). For some reason, whenever I assign the file path to the ImportSHP component, the component calculates correctly, but nothing is output from the featurePoints out.

I checked the shpExtent output, and it correctly outputs a polyline representing the boundaries of the file, but nothing for the points.

Any idea of what the problem could be? Can Heron handle line files at all, or it is though just for polygons?

Thank you!

Comment by Jonathan Wiederin on April 15, 2015 at 2:26pm

I have tried that. It doesn`t change anything. I don`t know what to do. 

Thanks for your help anyway!

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2015   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service