Giter Club home page Giter Club logo

PyGeoOps

Actions Status codecov PyPI version Conda version

PyGeoOps provides some less common or extended spatial algorithms and utility functions.

Introduction

This is a shortlist of the available functions:

  • centerline: centerline/medial axis calculation for a polygon, including optional cleanup of short branches.
  • view_angles: determine the start and end angle a polygon is visible from the viewpoint specified
  • simplify: simplify a polygon, with some extended options like
    • choice in simplification algorithms: Lang (+ a variant), Ramer Douglas Peuker, Visvalingal Whyatt
    • specify points/locations where points should not be removed by the simplification
    • topologic simplification: common boundaries between input features should stay common
  • utility functions to create and split grids (create_grid, split_tiles)
  • general utility functions on geometries like remove_inner_rings, collection_extract,…

Full documentation can be found on Read the Docs.

Usage

The centerline for a polygon, including the default cleanup of short branches, can be calculated like this:

import pygeoops
import shapely

polygon = shapely.from_wkt("POLYGON ((0 0, 0 8, -2 10, 4 10, 2 8, 2 2, 10 2, 10 0, 0 0))")
centerline = pygeoops.centerline(polygon)

centerline

Installation

PyGeoOps is available on PyPi, so can be installed using pip:

pip install pygeoops

Another option is to use conda or mamba, as it is also available on conda-forge:

conda install pygeoops --channel conda-forge

pygeoops's Projects

pygeoops icon pygeoops

Library with some less common or extended spatial functions

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.