Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(engine): update MVT handling and add error types #560

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" }
miseyu marked this conversation as resolved.
Show resolved Hide resolved
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