Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeesian/Turf.jl
https://github.com/yeesian/Turf.jl
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeesian/Turf.jl
- Owner: yeesian
- License: mit
- Created: 2015-01-28T18:19:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T17:22:40.000Z (over 4 years ago)
- Last Synced: 2024-05-01T14:44:01.353Z (2 months ago)
- Language: Julia
- Size: 83 KB
- Stars: 1
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- Awesome-Geospatial - Turf.jl - This library is a port of Turf.js to the Julia programming language for geospatial analysis. (Julia)
- awesome-gis - Turf.jl - This library is a port of Turf.js to the Julia programming language for geospatial analysis. (Geospatial Library / Julia)
- awesome-gis - Turf.jl - This library is a port of Turf.js to the Julia programming language for geospatial analysis. (Geospatial Library / Julia)
- awesome-geospatial - Turf.jl - This library is a port of Turf.js to the Julia programming language for geospatial analysis. (Julia)
README
# Turf.jl
[![Build Status](https://travis-ci.org/yeesian/Turf.jl.svg)](https://travis-ci.org/yeesian/Turf.jl.svg)
[![Coverage Status](https://coveralls.io/repos/yeesian/Turf.jl/badge.svg)](https://coveralls.io/r/yeesian/Turf.jl)> Turf is a modular geospatial engine written in JavaScript. It includes traditional spatial operations, helper functions for creating GeoJSON data, and data classification and statistics tools.
This library is a port of Turf.js to the Julia programming language for geospatial analysis.
**NOTE**: This package is no longer being actively developed. Please see https://github.com/philoez98/Turf.jl instead.
## Installation
`Turf.jl` is not a listed package (yet). Heres what you're going to need to do to install it:
```julia
# You'll need GeoJSON, so install it if you haven't already
Pkg.add("GeoJSON")
# Now download Turf direct from this repository
Pkg.clone("https://github.com/yeesian/Turf.jl.git")
# This will install it to your Julia package directory.
# Running Pkg.update() will always give you the freshest version of Turf
Pkg.test("Turf")
# Doublecheck that it works
```##Data in Turf
Turf uses [GeoJSON](http://geojson.org/) for all geographic data, and expects the data to be standard [WGS84](http://en.wikipedia.org/wiki/World_Geodetic_System) longitude, latitude coordinates. Check out [geojson.io](http://geojson.io/#id=gist:anonymous/844f013aae8354eb889c&map=12/38.8955/-77.0135) for a tool to easily create this data.
## Basic Usage
Most Turf functions work with GeoJSON features, provided by the [GeoJSON.jl](https://github.com/JuliaGeo/GeoJSON.jl) package. These are are pieces of data that represent a collection of properties (ie: population, elevation, zipcode, etc.) along with a geometry.We provide a few examples of its usage below: