Skip to content

Commit

Permalink
feat(engine): update MVT handling and add error types (#560)
Browse files Browse the repository at this point in the history
* feat(engine): update MVT handling and add error types

* fix
  • Loading branch information
miseyu authored Oct 8, 2024
1 parent 3797373 commit 4ea6a0f
Show file tree
Hide file tree
Showing 16 changed files with 842 additions and 965 deletions.
38 changes: 38 additions & 0 deletions engine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ async-stream = "0.3.6"
async-trait = "0.1.83"
async_zip = { version = "0.0.17", features = ["full"] }
base64 = "0.22.1"
bincode = { version = "2.0.0-rc.3", default-features = false, features = ["serde", "std"] }
byteorder = "1.5.0"
bytes = { version = "1.7.2", features = ["serde"] }
chrono = { version = "0.4.38", features = ["serde"] }
Expand Down
2 changes: 2 additions & 0 deletions engine/runtime/action-sink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ reearth-flow-state.workspace = true
reearth-flow-storage.workspace = true
reearth-flow-types.workspace = true

kv-extsort = { git = "https://github.com/MIERUNE/kv-extsort-rs.git" }
nusamai-citygml.workspace = true
nusamai-geometry.workspace = true
nusamai-gltf.workspace = true
Expand All @@ -29,6 +30,7 @@ nusamai-projection.workspace = true

ahash.workspace = true
async-trait.workspace = true
bincode.workspace = true
byteorder.workspace = true
bytes.workspace = true
cesiumtiles.workspace = true
Expand Down
4 changes: 4 additions & 0 deletions engine/runtime/action-sink/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ pub enum SinkError {
GeoJsonWriterFactory(String),
#[error("GeoJson Writer error: {0}")]
GeoJsonWriter(String),
#[error("Mvt Writer error: {0}")]
MvtWriter(String),
}

impl SinkError {
pub fn file_writer<T: ToString>(message: T) -> Self {
Self::FileWriter(message.to_string())
}
}

pub type Result<T, E = SinkError> = std::result::Result<T, E>;
1 change: 0 additions & 1 deletion engine/runtime/action-sink/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ mod gltf;
pub(crate) mod mvt;
pub(super) mod types;
mod util;
mod vector_tile;
pub(crate) mod writer;
Loading

0 comments on commit 4ea6a0f

Please sign in to comment.