Expand description
Pure-Rust GeoTIFF and COG writer with compression, tiling, and overview support.
Compression: None, LZW, Deflate, JPEG (feature), LERC, LERC+Deflate, LERC+Zstd, ZSTD (feature).
§Example
use geotiff_writer::GeoTiffBuilder;
use ndarray::Array2;
let data = Array2::<f32>::zeros((100, 100));
GeoTiffBuilder::new(100, 100)
.epsg(4326)
.pixel_scale(0.01, 0.01)
.origin(-180.0, 90.0)
.nodata("-9999")
.write_2d("output.tif", data.view())
.unwrap();Re-exports§
pub use builder::GeoTiffBuilder;pub use cog::CogBuilder;pub use cog::CogTileWriter;pub use cog::Resampling;pub use error::Error;pub use error::Result;pub use tile_writer::StreamingTileWriter;
Modules§
- builder
- GeoTiffBuilder: fluent API for constructing GeoTIFF files.
- cog
- Cloud Optimized GeoTIFF (COG) writer.
- error
- sample
- Re-export WriteSample from tiff-writer and add lightweight numeric helpers.
- tile_
writer - Streaming tile-by-tile GeoTIFF writer.
Structs§
- Color
Map - TIFF palette ColorMap values split into RGB planes.
- CrsInfo
- Extracted CRS information from GeoKeys.
- GeoKey
Directory - Parsed GeoKey directory.
- GeoTransform
- An affine geo-transform mapping pixel (col, row) to map (x, y).
- Horizontal
Crs - Horizontal CRS component extracted from GeoKeys.
- Jpeg
Options - JPEG encoding options for the TIFF writer.
- Lerc
Options - LERC encoding options for the TIFF writer.
- Vertical
Crs - Vertical CRS component extracted from GeoKeys.
Enums§
- Color
Model - Structured interpretation of TIFF photometric and ancillary color tags.
- Compression
- TIFF compression scheme.
- CrsKind
- Structured CRS interpretation synthesized from GeoKeys.
- Extra
Sample - TIFF ExtraSamples semantic.
- GeoKey
Value - The value of a GeoKey.
- InkSet
- TIFF InkSet semantics for separated photometric data.
- Lerc
Additional Compression - TIFF-side LERC additional compression mode.
- Model
Type - GeoTIFF model type.
- Photometric
Interpretation - TIFF photometric interpretation.
- Planar
Configuration - TIFF planar configuration.
- Predictor
- TIFF predictor scheme.
- Raster
Type - GeoTIFF raster-space interpretation.
- Tiff
Variant - TIFF format variant.
- YCbCr
Positioning - TIFF YCbCr chroma sample positioning.
Traits§
- Write
Sample - Types that can be written as TIFF samples.