-
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
Gpkg, GeoJSON のジオメトリ生成コードを汎化する #154
Merged
Merged
Conversation
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
a577dfe
to
a483853
Compare
a483853
to
7dcf1e7
Compare
Codecov ReportAttention:
Additional details and impacted files
📢 Thoughts on this report? Let us know! |
d5516c7
to
788b9fd
Compare
788b9fd
to
22e6d8c
Compare
ciscorn
added a commit
that referenced
this pull request
Jan 8, 2024
## 変更内容 ### 仮のTransformerで「とりあえず」の変換処理を行う - x-y 入れかえ処理を入れておく - これにともない GeoJSON, GeoPackage ドライバ内での x-y 入れかえは除去する - WGS 84 にしておく処理も追加 #155 ### Gpkg, GeoJSON 周りのリファクタリング - `nusamai-geojson` に "indexed" でないふつうのジオメトリをGeoJSON Valueに変換する関数を追加(tiling2d sink で使う)。 - #154 もこのPRにマージ - Gpkg のバイナリジオメトリの構築で、 `Vec<u8>` でなく `std::io::Write` trait を使う(`Vec<u8>`はWrite)。一時的なVecの生成も除去。 --- Closes: #125 Closes: #76
Merged
ciscorn
added a commit
that referenced
this pull request
Jan 9, 2024
## 変更内容 ### #153 #### 仮のTransformerで「とりあえず」の全頂点の変換処理を行う - x-y 入れかえ処理を入れておく - これにともない GeoJSON, GeoPackage ドライバ内での x-y 入れかえは除去する - CRSを WGS 84 にしておく処理も追加 #155 #### Gpkg, GeoJSON 周りのリファクタリング - `nusamai-geojson` に "indexed" でないふつうのジオメトリをGeoJSON Valueに変換する関数を追加(tiling2d sink で使う)。 - #154 もこのPRにマージ - Gpkg のバイナリジオメトリの構築で、 `Vec<u8>` でなく `std::io::Write` trait を使う(`Vec<u8>`はWrite)。一時的なVecの生成も除去。 ### その他 - Gpkg sink が、インメモリSQLiteを扱えていない(`:memory:` というファイルを作ってしまう)問題を修正 - SipHash → aHash #156 - Iterator::chain 除去 #157 - Noop Sink, Serde Sinkを走らせるだけのテストに GeoJSONとGPKG も追加 - `nusamai_citygml::object::Geometries` の名前を `GeometryStore` に変更(ジオメトリのつめあわせであることを多少分かりやすく) - `GeometryStore` にCRSの情報をもたせられるようにしておく(仮) - その他細かい調整など
3 tasks
sorami
added a commit
that referenced
this pull request
Jan 26, 2024
## 概要 - [x] `nusamai-shapefile` クレートの作成 - [x] `nusamai_geometry::MultiPoint` から Shapefile形式への変換 - [x] `examples/{read,write}.rs` - ファイル読み書きの参考例(tmp - 最終的に削除する) まず例として小さく、MultiPointの部分のみを作ったプルリクです。方向性に問題ないかご確認いただけますでしょうか! 外部クレート [shapefile](https://docs.rs/shapefile/latest/shapefile/) を用いて実装しています。 リファクタしてもらった `nusamai-geojson` の形(#154)をもとにしています(ので、それをやった @ciscorn さんを明示的にレビューアーへ入れてみました)。 3D地物(`nusamai_geometry::MultiPoint::<3>`, `shapefile::MultiPointZ`)のみで、2Dは考慮していません。 ## その後の進め方 related #198 この方向性で問題なければ、それを踏まえて、以下の順に進めていく予定です: - MultiLineString, MultiPolygonの変換 - Shapefile全体での出力 - Shapefile Sink - (属性付与) --------- Co-authored-by: Taku Fukada <naninunenor@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nusamai-gpkg と nusamai-geojson において、(vertices+indices) な表現のジオメトリと、そうでないふつうのジオメトリを、なるべく共通のコードで扱えるようにする。