Giter VIP home page Giter VIP logo

turf-node-example's Introduction

turf node example

This is an example of how to use Turf for a scripting task with node. This technique lets you process bigger amounts of data than you could in a browser, and have node read and write files.

You'll need a few skills to get started:

Installation

If you have node installed, you also have a command called npm installed: this is what you use to download extra software for node. This project has some preset requirements, which are stored in package.json, so if you open a terminal in the same folder as this project and run the command

$ npm install

Then the npm command with automatically find, download, and install turf to this directory.

Next, you should open index.js, either locally or on GitHub, read through the code comments to understand what it does.

When you feel comfortable with your understanding of the process, run it:

$ node index.js

This tells node to run the code in index.js. That should quickly report:

$ node index.js
saved output/convex_hull.geojson

And you can open the files input/random.geojson and output/convex_hull.geojson to see what the script did.

turf-node-example's People

Contributors

tmcw avatar lyzidiamond avatar tcql avatar

Watchers

 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.