Heron

This is the first release of an add-on which enables the import of GIS data from various sources into the Rhino/Grasshopper environment, located, scaled and cropped based on an Earth Anchor Point and a clipping polygon.  Sources of GIS data include Shapefiles, USGS IMG/HGT Elevation files and ArcGIS REST Services over the web.

The add-on includes eight components in two categories:

GIS REST

  • ESRI REST Service Geocode. Get a Decimal Degree coordinate from an address or Point-of-Interest with the Geocode service provided by ESRI.  
  • Get REST Service Layers. Discover data layers  from various data sources on the web. If the layers are a vector type, they return data similar to a shapefile, with geometry and associated data fields.  To be used with the Get REST Vector or Get REST Raster component depending on the data type.
  • Get REST Raster. Grabs JPGs of imagery from the specified web source.  Once downloaded to a folder the image can be located and scaled to match the boundary in real world units (meters) with the use of the image frame.
  • Get REST Vector.  Queries the web source for geometry and associated data fields.  For instance demographic information from the US Census can be referenced.

GIS Tools

  • Decimal Degrees to XY.  Convert Decimal Degrees to XY coorindates based on the EarthAnchorPoint.
  • Import SHP.  Imports Shapefiles using OGR Libraries. Output is in the form of points (for now) which can then be connected to form polylines.  For Shapefiles with Multipolygons (ie building footprints with courtyards), the component reads mulitple branches of points per Feature.  To get the footprint, you will need to draw a polyline for each branch, shift the branches and use the Boundary Surface component.
  • Import Topo.  Imports IMG and (STRM) HGT files using GDAL Libraries.  Output is in the form of a mesh.
  • Set EarthAnchorPoint.  Runs a macro to set the Earth Anchor Point in Rhino.  This is important to minimize distortion translating from the curved surface of the Earth to Euclidean coordinates.

Special thanks go to the vibrant GH community, the masterful guidance of Andrew Heumann and endless patience of George Waters.

SHP import error in EPSG 2154 (RGF93 / Lambert-93)

Hello,

Thank you for this very interesting plug-in,
I would like to work with a .shp file projected in lambert93 (EPSG: 2154). I am unable to use the import vector function with heron version 0.3.6. Should I use a custom CRS? Version 0.2.0 works with .shp files in the lambert93 coordinate system, but version 0.3.6 does not.
I would like to use version 0.3.6 since there are more features, I especially need the ESRI REST Geocode function which does not work in version 0.2.0.
I also cannot reproject my .shp data manually to WGS84 using QGIS, although it works, since I have thousands of files.
Do you have a solution to use the import vector function in the lambert93 coordinate system?
Thank you

Screenshots of Heron 0.2.0 :

heron_0.2.0_RGF93_Lambert93_1.jpg

heron_0.2.0_RGF93_Lambert93_2.jpg

Screenshots of Heron 0.3.6 :

heron_0.3.6_RGF93_Lambert93_1.jpg

heron_0.3.6_RGF93_Lambert93_2.jpg

heron_0.3.6_RGF93_Lambert93_3.jpg

GH files :

heron_0.2.0_RGF93_Lambert93.gh

heron_0.3.6_RGF93_Lambert93.gh

SHP files :

SURFACE_HYDROGRAPHIQUE.cpg

SURFACE_HYDROGRAPHIQUE.dbf

SURFACE_HYDROGRAPHIQUE.prj

SURFACE_HYDROGRAPHIQUE.shp

SURFACE_HYDROGRAPHIQUE.shx

  • up

    Brian Washburn

    Hi Paul,

    There is definitely a bug in my code that I will be looking into over the weekend.  The component only seems to work without a boundary, setting cropIt to false and with the default SRS of WGS84.  This is related to the bug reported by Evgeny here.  Thanks for posting the files at issue, they will help me troubleshoot.

    5