Git Product home page Git Product logo

ghshp's Introduction

Shapefile Import and Export for Grasshopper

ghShp

Description

Grasshopper plugin to import and export ESRI Shapefile. Plugin written in pyhton and using pyshp module. So GhPython and pyshp are needed to be installed.

Dependencies

Changelog

  • 2017-10-12 Decimal number support, more examples
  • 2017-08-27 Initial version

Installation

Install GhPython

Download last version from food4rhino http://www.food4rhino.com/app/ghpython. Tested with 0.6.0.3.

To install:

  1. In Grasshopper, choose File > Special Folders > Components folder. Save the gha file there.

  2. Right-click the file > Properties > make sure there is no "blocked" text

  3. Restart Rhino and Grasshopper

Install pyshp

Plugin developed for using in native python environment while Grasshopper is using IronPython. So installation of the module requires a bit of creativity.

  1. Download pyshp zip achive https://github.com/GeospatialPython/pyshp/archive/1.2.12.zip

  2. Extract it to C:\Users%USERNAME%\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts. Final path to shapefile.py should be ...Rhinoceros\5.0\scripts\shapefile.py

Then copy user object files, add to layout and check that it works.

Install UserObjects

  1. Download zip archive https://github.com/Hiteca/ghShp/archive/master.zip

  2. In Grasshopper, choose File > Special Folders > User Objects folder. Save two .userobject files from zip into this folder.

  3. New buttons will appears at "Extra" tab

Contributing

Have any questions or ideas - please write to [email protected]

Feel free to add bug issues and submit pull requests.

Thank you

Before this code was published here it have already been implemented in some of the projects by many people. Thank you for participation and feedback.

A "core" of the code is pyshp module. We thank the people who develop it

ghshp's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.