BearGIS Plugin (GIS data reader / writer, shp, geojson)

welcome BearGIS

I’m posting to share a new grasshopper plugin I have been developing for extended GIS data support and interoperability. The big idea behand BearGIS is to enable export of geometry and accompanying attributes to GIS data formats.

The primary functionality has been implemented but it is not 100% complete. It is hosted on Github at the moment and will make its way to food4rhino after a bit more development and cleaning. If you are a developer and choose to look at the code… it’s messy. I will be cleaning things up and conforming to best practices once I wrap up implementing some additional functionality.

Current Highlights:

  • Write ESRI standard GeoJson files for easy interoperability with Arcmap and ArcGIS
  • Read ESRI GeoJson for easy import of data into rhino from ESRI platforms.
  • Read .SHP files into grasshopper (this is currently a bit slow and needs some work to speed up)

To Come:

  • Export standard GeoJson for easy web uploading
  • Import GeoJson - the more common geojson standard (Though I believe others have developed this already)
  • Export .SHP, preferable to Geojson for wider gis platform support

Check it out!

Plug-in Site: https://nicoazel.github.io/BearGIS/
Github Repository: https://github.com/nicoazel/BearGIS

4 Likes

UPDATE

New Features

  • SHP Writing from GH
  • Faster SHP Reader
  • Fixed Github Pages For Downloading Zip
  • Improved Attribute Type Handling

On The Horizon

  • Geojson Support
  • Food4rhino Upload
  • Example Files (Though Things Are Fairly Self Explanatory)

Plug-in Site: https://nicoazel.github.io/BearGIS/
Github Repository: https://github.com/nicoazel/BearGIS

1 Like

Excellent plugin!

The shapefile export works perfectly. For who doesn’t know what to plug in the field “.prj File Path”, it’s the Coordinate System desired. To have that, you can:

Go in ArcMap > in Table of Contents, double click the “Layers” > Coordinate System > search the one that you wish, Right click > Save as…

This will make you have the .prj file.

And @Nicolas_Azel, just one observation: It would be interesting to control the field type, so you could choose between string, double, integer…

Congratulations for the plugin, again.

Thank you,
Kevin

1 Like

An new update has been made to bearGIS’s .shp export functionality to support field types.

The current functionality for fields is to default to string unless specified within the fields input. To specify the desired type, follow the field name with a semicolon and the corresponding .net type.

Example:
myFieldName;System.Double will create a data column named ‘myFieldName’ of type ```double``

You can download the latest version here https://nicoazel.github.io/BearGIS/

2 Likes

Hi, It’s a wonderful plugin! can we have an example file?
I want to import a Geojasn to Grasshopper but it’s not successful.
I got the message:

  1. Solution exception:Object reference not set to an instance of an object.

I’ve attached a Zip below with the most recent version of the plugin and examples.
BearGIS Example.zip

Note that prior to this version BearGIS did not support GeoJson only ESRI formatted JSON. For alternative GeoJSON support in Grasshopper you may want to consider Decoding Spaces Plugin

See Example File Screen Captures Below:

Import

Export

Testing GIS Data Types

1 Like

Posting that a new version has been pushed that includes more GeoJSON exporting tools and Projection tools for Points to Lat Lon as well as between two projection systems.

2 Likes