Skip to main content

Crate geotiff_writer

Crate geotiff_writer 

Source
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§

ColorMap
TIFF palette ColorMap values split into RGB planes.
CrsInfo
Extracted CRS information from GeoKeys.
GeoKeyDirectory
Parsed GeoKey directory.
GeoTransform
An affine geo-transform mapping pixel (col, row) to map (x, y).
HorizontalCrs
Horizontal CRS component extracted from GeoKeys.
JpegOptions
JPEG encoding options for the TIFF writer.
LercOptions
LERC encoding options for the TIFF writer.
VerticalCrs
Vertical CRS component extracted from GeoKeys.

Enums§

ColorModel
Structured interpretation of TIFF photometric and ancillary color tags.
Compression
TIFF compression scheme.
CrsKind
Structured CRS interpretation synthesized from GeoKeys.
ExtraSample
TIFF ExtraSamples semantic.
GeoKeyValue
The value of a GeoKey.
InkSet
TIFF InkSet semantics for separated photometric data.
LercAdditionalCompression
TIFF-side LERC additional compression mode.
ModelType
GeoTIFF model type.
PhotometricInterpretation
TIFF photometric interpretation.
PlanarConfiguration
TIFF planar configuration.
Predictor
TIFF predictor scheme.
RasterType
GeoTIFF raster-space interpretation.
TiffVariant
TIFF format variant.
YCbCrPositioning
TIFF YCbCr chroma sample positioning.

Traits§

WriteSample
Types that can be written as TIFF samples.