-
Notifications
You must be signed in to change notification settings - Fork 12
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
#169 修正用ブランチ #197
#169 修正用ブランチ #197
Conversation
#160 - CityObjectを受け取り、以下のようなことを行う一連の処理群を仮実装しました - CityObject.root(Feature)から子要素のFeatureを抽出 - Dataを別レイヤー化 - 子要素の別地物化 - 属性情報の個別変換- - sinkなどから利用することを想定しています - 特に問題ないということであればそれはそれで良いのですが、あくまで仮実装のイメージで、今後ブラッシュアップしていきます - 挙動 - 設定方法 - 出力されるCityObject - 出力ドライバーでの扱い - プログラムの構造 - 以下のようなコマンドで動作します - リポジトリのルートに「マッピングルール」を想定した、以下のようなJSONファイルを置いてください - 実行後、リポジトリのルートに「output_object.json」が出力されます - これをsink内で利用して出力していく想定です [mappings.json](https://github.com/MIERUNE/nusamai/files/13983445/mappings.json) ```bash cargo run --package nusamai /Users/satoru/Downloads/plateau/22203_numazu-shi_2021_citygml_4_op/udx/bldg/52385618_bldg_6697_op.gml --sink geojson --output ~/Downloads/output/output.geojson ``` --------- Co-authored-by: Taku Fukada <naninunenor@gmail.com>
Codecov ReportAttention: Additional details and impacted files
📢 Thoughts on this report? Let us know! |
} | ||
} | ||
|
||
fn flatten( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1つ目の子までしか見ていなかったので、再帰的に展開するように変更。
} | ||
} | ||
|
||
impl Transform for SerialTransform { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transformを直列にしたものもTransformである、ようにしておく。
let mut entities = serial_transform.transform(entity); | ||
|
||
// 属性の変換などを行うEditor | ||
let mut traversal = SerialEditor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
エディターかーなるほどー
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
ありがとうございましたー!
#169 を、既存のコードベースに影響を与えない、実験用のSinkとしてマージできるようにする。