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

MultiLineString, MultiPointへの対応 #122

Open
sorami opened this issue Dec 26, 2023 · 1 comment
Open

MultiLineString, MultiPointへの対応 #122

sorami opened this issue Dec 26, 2023 · 1 comment
Labels
Output Fomat Output format drivers

Comments

@sorami
Copy link
Member

sorami commented Dec 26, 2023

#89 の実装では、MultiPolygonのみに対応していた。

トップレベル都市オブジェクトは、他にMultiLineString, MultiPointも持ちうる(が、データとしてはほとんどない模様)。

@sorami sorami added the Output Fomat Output format drivers label Dec 26, 2023
sorami added a commit that referenced this issue Dec 27, 2023
#89 を踏まえて、トップレベル都市オブジェクトをGeoPackageへ追加する部分を実装。

参考(Notion): [GeoPackage
メモ](https://www.notion.so/GeoPackage-56b53cc7ee5f4270a7df151d84bfb290)
(テーブルやバイナリの構造など)

## 大まかな流れ

- `GpkgHandler::init` (`src/handler.rs`)
  - `sql/init.sql` で、GeoPackage用のテーブルを作成
  - `sql/mpoly3d.sql` で、3Dマルチポリゴン用のテーブルを用意
- `GpkgHandler::add_object`
  - トップレベル都市オブジェクトを受け取り、DBへ追加
  - ジオメトリのバイナリを作る部分は `src/geometry.rs` にある

exampleの実行例:

```
$  cargo run --example gml2gpkg ~/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/bldg/53392546_bldg_6697_2_op.gml
```

## このPRで対応しない想定のイシュー

- #119
- #120
- #121
- #122
- #124 
- #125
@nokonoko1203
Copy link
Collaborator

nokonoko1203 commented Mar 8, 2024

gpkgに限らず。

@nokonoko1203 nokonoko1203 added this to the 未来 (Future) milestone Mar 8, 2024
@nokonoko1203 nokonoko1203 changed the title nusamai-gpkg: MultiLineString, MultiPointへの対応 MultiLineString, MultiPointへの対応 Mar 8, 2024
@ciscorn ciscorn removed this from the Future milestone Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output Fomat Output format drivers
Projects
None yet
Development

No branches or pull requests

3 participants