use std::path::PathBuf;
#[non_exhaustive]
#[derive(thiserror::Error, Debug)]
pub enum GeoJsonError {
#[error("IO error {0}: {1}")]
IoError(#[source] std::io::Error, PathBuf),
#[error("GeoJSON parsing error: {0}")]
GeoJsonError(#[source] Box<geojson::errors::Error>),
#[error("MVT encoding error: {0}")]
MvtError(#[source] mlt_core::fast_mvt::MvtError),
#[error("GeoJSON property {0} cannot be represented as an MVT value")]
UnsupportedProperty(String),
#[error("GeoJSON has too many features to index: {0} exceeds u32::MAX")]
TooManyFeatures(usize),
}