Skip to main content

A simple API for lossfully converting raster datasets to GeoJSON.

Project description

# Unrasterize [![PyPI version](https://badge.fury.io/py/unrasterize.svg)](https://badge.fury.io/py/unrasterize) [![Build Status](https://travis-ci.org/tetraptych/unrasterize.svg?branch=master)](https://travis-ci.org/tetraptych/unrasterize) [![Documentation Status](https://readthedocs.org/projects/unrasterize/badge/?version=latest)](http://unrasterize.readthedocs.io/en/latest/?badge=latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Unrasterize is a Python library for converting raster datasets into GeoJSON objects by selecting representative points based on their pixel values. The conversion process results in less granular data with dramatically reduced file sizes for use in other applications that accept GeoJSON inputs.

The inspiration and original use case for this library is the 100m resolution population data provided by [WorldPop](http://www.worldpop.org.uk/). This is also the source of the files in the data directory used by the unit tests.

## Installation

unrasterize is available on [PyPI](https://pypi.python.org/pypi/unrasterize) and can be installed via the command pip install unrasterize.

rasterio, a depedency of unrasterize, may require the installation of additional GIS-specific tools outside of pip. Refer to the [Dockerfile](Dockerfile) for a list of these tools and how to install them.

## Sample output

![Representative points for France created using WorldPop raster data](https://farm5.staticflickr.com/4708/39370187915_693f694b79_z_d.jpg “Representative points for France created using WorldPop raster data”)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unrasterize, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size unrasterize-1.0.0-py2.py3-none-any.whl (9.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page