Skip to content

Clip big rasters to smaller tiles based on target size in MB

Notifications You must be signed in to change notification settings

aorzh/raster_clipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This CLI application allow you split big raster into smaller tiles. Splitting based on a target file size in MB. This clipper can be helpful when you have a big raster which is difficult to open in a GIS program.

How to build

  1. Download of clone this repository
  2. Install Rust if not installed (https://www.rust-lang.org/tools/install)
  3. Run command cargo build --release (more details: https://doc.rust-lang.org/cargo/commands/cargo-build.html)
  4. Application can be found in target/release

How to run

./raster_clipper -h
Splits a large Geospatial (tif, tiff, jp2) file into smaller tiles

Usage: raster_clipper [OPTIONS] --file_path <FILE_PATH>

Options:
  -f, --file_path <FILE_PATH>          Path to the input geospatial file
  -s, --target_tile_size_mb <SIZE_MB>  Target tile size in MB [default: 500.0]
  -o, --base_out <OUTPUT_DIR>          Output directory for the tiles [default: output]
  -h, --help                           Print help
  -V, --version                        Print version

Tags

GIS, QGIS, GDAL, geospatial, tiff, tif, jp2

About

Clip big rasters to smaller tiles based on target size in MB

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages