All Projects → pyturf → pyturf

pyturf / pyturf

Licence: MIT license
A modular geospatial engine written in python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyturf

turf-go
A Go language port of Turf.js
Stars: ✭ 41 (+173.33%)
Mutual labels:  geojson, geo, geospatial, gis, turf
GeoJSON.jl
Utilities for working with GeoJSON data in Julia
Stars: ✭ 46 (+206.67%)
Mutual labels:  geojson, geo, geospatial, gis
Orb
Types and utilities for working with 2d geometry in Golang
Stars: ✭ 378 (+2420%)
Mutual labels:  geojson, geo, geospatial, gis
Go Geom
Package geom implements efficient geometry types for geospatial applications.
Stars: ✭ 456 (+2940%)
Mutual labels:  geojson, geo, geospatial, gis
Solaris
CosmiQ Works Geospatial Machine Learning Analysis Toolkit
Stars: ✭ 290 (+1833.33%)
Mutual labels:  geo, geospatial, gis
Shapefile.jl
Parsing .shp files in Julia
Stars: ✭ 40 (+166.67%)
Mutual labels:  geo, geospatial, gis
Awesome Gis
😎Awesome GIS is a collection of geospatial related sources, including cartographic tools, geoanalysis tools, developer tools, data, conference & communities, news, massive open online course, some amazing map sites, and more.
Stars: ✭ 2,582 (+17113.33%)
Mutual labels:  geo, geospatial, gis
pygeoif
Basic implementation of the __geo_interface__
Stars: ✭ 44 (+193.33%)
Mutual labels:  geojson, geospatial, gis
georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (+1020%)
Mutual labels:  geo, geospatial, gis
Geoswift
The Swift Geometry Engine.
Stars: ✭ 1,267 (+8346.67%)
Mutual labels:  geojson, geo, geospatial
Geotools
Official GeoTools repository
Stars: ✭ 1,109 (+7293.33%)
Mutual labels:  geojson, geospatial, gis
L7
🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis framework which relies on Mapbox GL or AMap to render basemaps.
Stars: ✭ 2,517 (+16680%)
Mutual labels:  geojson, geospatial, gis
Proj4.jl
Julia wrapper for the PROJ cartographic projections library
Stars: ✭ 23 (+53.33%)
Mutual labels:  geo, geospatial, gis
Mapsui
Mapsui is a .NET Map component for WPF, Xamarin.Forms, Xamarin.Android, Xamarin.iOS and UWP
Stars: ✭ 447 (+2880%)
Mutual labels:  geo, geospatial, gis
GMT.jl
Generic Mapping Tools Library Wrapper for Julia
Stars: ✭ 148 (+886.67%)
Mutual labels:  geo, geospatial, gis
Turf
A modular geospatial engine written in JavaScript
Stars: ✭ 6,659 (+44293.33%)
Mutual labels:  geojson, gis, turf
olturf
A Turf toolbar for OpenLayers.
Stars: ✭ 30 (+100%)
Mutual labels:  geospatial, gis, turf
de9im
DE-9IM spatial predicate library implemented in Javascript.
Stars: ✭ 22 (+46.67%)
Mutual labels:  geojson, geospatial, gis
font-gis
Icon font and SVG for use with GIS and spatial analysis tools
Stars: ✭ 121 (+706.67%)
Mutual labels:  geo, gis
awesome-geospatial-data-download-sites
This is the repo for open source geospatial data download sites.
Stars: ✭ 19 (+26.67%)
Mutual labels:  geospatial, gis

pyturf

Read the docs

build_badge codecov PyPI version Documentation Status

pyturf is a powerful geospatial library written in python, based on turf.js, a popular library written in javascript. It follows the same modular structure and maintains the same functionality as the original modules in that library for maximum compatibility.

It includes traditional geospatial operations, as well as helper functions for creating and manipulating GeoJSON data.

Installation

$ pip install pyturf

Usage

Most pyturf modules expect as input GeoJSON features or a collection of these, which can be the following:

  • Point / MultiPoint
  • LineString / MultiLineString
  • Polygon / MultiPolygon

These can either be defined as a python dictionary or as objects from pyturf helper classes.

# example as a dictionary:

point1 = {
  "type": "Feature",
  "properties": {},
  "geometry": {
    "type": "Point",
    # Note order: longitude, latitude.
    "coordinates": [-73.988214, 40.749128]
  }
}

...

# Example using objects from helper classes

from turf import point

# Note order: longitude, latitude.
point1 = point([-73.988214, 40.749128])

In order to use the modules, one can import directly from pyturf, such as:

from turf import distance, point

point1 = point([-73.988214, 40.749128])
point2 = point([-73.838432, 40.738484])

dist = distance(point1, point2, {"units": "miles"})

Available Modules

Currently, the following modules have been implemented:

Contributing

This library is a work in progress, so pull requests from the community are welcome!

Check out CONTRIBUTING.md for a detailed explanation on how to contribute.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].