Raffine
A high-performance, affine transformation library for Rust, inspired by Python's Affine package(https://github.com/rasterio/affine).
📦 Installation
Add this to your Cargo.toml:
[]
= "0.2"
🎯 Quick Start
use Affine;
🌍 GIS Integration
GDAL Compatibility
// Import from GDAL GeoTransform format
let gdal_params = ;
let transform = from_gdal;
// Export to GDAL format
let = transform.to_gdal;
⚙️ Configuration
Precision Control
use ;
// Set global precision for floating-point comparisons
set_epsilon;
// Custom precision for specific comparisons
let t1 = identity;
let t2 = translation;
assert!;
📄 License
MIT license (LICENSE or http://opensource.org/licenses/MIT)
🙏 Credits
This library is derived from Casey Duncan's Planar package and inspired by Python's Affine package.