Skip to content

Commit

Permalink
マインクラフト出力設定をGUIに追加 (#554)
Browse files Browse the repository at this point in the history
<!-- Close or Related Issues -->
Close #538

### Description(変更内容)
<!-- Please describe the motivation behind this PR and the changes it
introduces. -->
<!-- 何のために、どのような変更をしますか? -->

- Minecraft SinkをGUIから指定できるようにしました。
- 座標系はMinecraft Sinkの中でUTMに変換されますが、Transform
Stageでは4979に変換されることを想定しているので、「WGS 84 (EPSG:4979)」のような記載にしました。

### Manual Testing(手動テスト)
<!-- If manual testing is required, please describe the procedure. -->
<!-- 手動での動作確認が必要なら、そのやり方を記述してください。-->

Not required / 不要
  • Loading branch information
nokonoko1203 authored Jun 3, 2024
1 parent 2c2c1df commit f2fefce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ use nusamai::{
pipeline::{feedback, Canceller},
sink::{
cesiumtiles::CesiumTilesSinkProvider, czml::CzmlSinkProvider, geojson::GeoJsonSinkProvider,
gltf::GltfSinkProvider, gpkg::GpkgSinkProvider, kml::KmlSinkProvider, mvt::MvtSinkProvider,
ply::StanfordPlySinkProvider, serde::SerdeSinkProvider, shapefile::ShapefileSinkProvider,
DataSinkProvider,
gltf::GltfSinkProvider, gpkg::GpkgSinkProvider, kml::KmlSinkProvider,
minecraft::MinecraftSinkProvider, mvt::MvtSinkProvider, ply::StanfordPlySinkProvider,
serde::SerdeSinkProvider, shapefile::ShapefileSinkProvider, DataSinkProvider,
},
source::{citygml::CityGmlSourceProvider, DataSourceProvider},
transformer::{
Expand Down Expand Up @@ -115,6 +115,7 @@ fn select_sink_provider(filetype: &str) -> Option<Box<dyn DataSinkProvider>> {
"gltf" => Some(Box::new(GltfSinkProvider {})),
"ply" => Some(Box::new(StanfordPlySinkProvider {})),
"cesiumtiles" => Some(Box::new(CesiumTilesSinkProvider {})),
"minecraft" => Some(Box::new(MinecraftSinkProvider {})),
_ => None,
}
}
Expand Down
5 changes: 5 additions & 0 deletions app/src/lib/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ const filetypeOptions: Record<string, { label: string; extensions: string[]; eps
{ value: 10173, label: 'JGD2011 / 平面直角座標系 XII + 標高 (EPSG:10173)' },
{ value: 10174, label: 'JGD2011 / 平面直角座標系 XIII + 標高 (EPSG:10174)' }
]
},
minecraft: {
label: 'Minecraft',
extensions: [''],
epsg: [{ value: 4979, label: 'WGS 84 (EPSG:4979)' }]
}
};

Expand Down

0 comments on commit f2fefce

Please sign in to comment.