geojson-tile-renderer 0.1.0

Convert GeoJSON features to PNG tile images with Web Mercator projection
Documentation
/// Errors that can occur during tile rendering
#[derive(Debug, thiserror::Error)]
pub enum RenderError {
	/// Invalid coordinate value (NaN, infinite, or out of valid range)
	#[error("Invalid coordinate: {0}")]
	InvalidCoordinate(String),

	/// Unsupported GeoJSON geometry type
	#[error("Unsupported geometry type: {0}")]
	UnsupportedGeometry(String),

	/// Failed to perform geometric operation (e.g., polygon intersection)
	#[error("Geometry operation failed: {0}")]
	GeometryOperation(String),

	/// SVG generation error
	#[error("SVG generation error: {0}")]
	SvgGeneration(String),

	/// Image rendering error
	#[error("Image rendering error: {0}")]
	ImageRendering(String),

	/// Invalid settings or configuration
	#[error("Invalid settings: {0}")]
	InvalidSettings(String),

	/// GeoJSON parsing error
	#[error("GeoJSON parsing error: {0}")]
	GeoJsonParse(#[from] geojson::Error),
}

/// Type alias for Results that can return a RenderError
pub type Result<T> = std::result::Result<T, RenderError>;