Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

mapbox/rio-block-features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rasterio has a builtin rio blocks command now. Use that instead.

block-features

Create GeoJSON polygon features for internal raster tile block

Usage: blockfeatures [OPTIONS] RASTER

  Create GeoJSON polygon features of the internal tile blocks for any
  rasterio-supported raster.

  Usage: blockfeatures image.tif > blocks.geojson

  Default, echo a FeatureCollection. Optionally, echo a sequence of
  features.

Options:
  --sequence / --no-sequence  Write a LF-delimited sequence of texts
                              containing individual objects or write a single
                              JSON text containing a feature collection object
                              (the default).
  --rs / --no-rs              Use RS (0x1E) as a prefix for individual texts
                              in a sequence as per http://tools.ietf.org/html
                              /draft-ietf-json-text-sequence-13 (default is
                              False).
  --force                     Force the creation of feautures based on
                              rasterio's block_windows even if the raster is
                              not tiled
  --help                      Show this message and exit.

TODO

  • unit tests
  • make rio plugin
  • CI
  • pypi

About

geojson features from raster's internal tile blocks

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages