Giter VIP home page Giter VIP logo

geoturf's Introduction

Geo.Turf

Build Status Coverage Status hex.pm

An Elixir spatial analysis tool for the Geo library ported from TurfJS.

Warning

At the moment the library is in early development mode. The API could, and propably will, change on any moment.

Usage

The library can perform functions on Geo objects as well as basic mathematic functions useful in spatial analysis. At the moment Geo.Turf expects WGS84 coordinates.

For example:

  • Geo.Turf.Measure.along/3: Make a %Geo.Point{} at a definded distance from the start of a %Geo.LineString{} .
  • Geo.Turf.Measure.along_midpoint/1: Make a %Geo.Point{} at a the middle of a %Geo.LineString{} .
  • Geo.Turf.Measure.center/1: Makes a %Geo.Point{} at the center of a Feature.
  • Geo.Turf.Measure.close_to/4: Check if 2 %Geo.Point{} items are close to each other.
  • Geo.Turf.Measure.distance/3: Check the distance between 2 %Geo.Point{} items.
  • Geo.Turf.Measure.length_of/2: Gives the length of a %Geo.LineString{} or the circumference of a %Geo.Polygon{}

Suggestions

If there are functions you need from TurfJS or just things you thought of please just make an issue for it. Including a test for it would be great.

geoturf's People

Contributors

jongretar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jdyn

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.