Skip to content

Python library to convert polygons in GeoJSON, Shapefile and WKT format to raster masks and vice versa.

Notifications You must be signed in to change notification settings

whistler/geomask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Geomask

Python library to convert polygons in GeoJSON, Shapefile and WKT format to raster masks and vice versa. It can be used for data visualizations and machine learning on images.

Installation

pip install geomask

Usage

import geomask

Rasterize GeoJSON to create a image mask

image = geomask.rasterize(geojson)

Create a GeoJSON from a image mask

geojson = geomask.geojson(image, epsilon, min_area)

About

Python library to convert polygons in GeoJSON, Shapefile and WKT format to raster masks and vice versa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published