-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relates to #138 --------- Co-authored-by: Yuri Astrakhan <[email protected]>
- Loading branch information
Showing
8 changed files
with
66 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//! GDAL error type. | ||
use gdal_sys::OGRwkbGeometryType; | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum GdalError { | ||
#[error("Unsupported geometry type: {0}")] | ||
UnsupportedGeometryType(OGRwkbGeometryType::Type), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//! MVT error type. | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum MvtError { | ||
#[error("invalid feature.tags length: {0}")] | ||
InvalidFeatureTagsLength(usize), | ||
#[error("invalid key index {0}")] | ||
InvalidKeyIndex(u32), | ||
#[error("invalid value index {0}")] | ||
InvalidValueIndex(u32), | ||
#[error("unsupported value type for key {0}")] | ||
UnsupportedKeyValueType(String), | ||
#[error("geometry format")] | ||
GeometryFormat, | ||
#[error("too few coordinates in line or ring")] | ||
TooFewCoordinates, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters