Skip to content

Commit

Permalink
KML Sink:建物ごとにPlacemarkを作成するように変更 (#278)
Browse files Browse the repository at this point in the history
建物が一つの地物(Placemark)にまとまるように修正しました。


https://github.com/MIERUNE/nusamai/assets/83005951/de25d1f1-0925-4688-83ad-c5de9a9b650a

kmlデータ上では、
1gmlファイル...1Folder...nPlacemark...1MultiGeometry...nPolygon
の構成になっています。
```
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
    <Folder>
        <Placemark>
            <MultiGeometry>
                <Polygon>
                    ...
                </Polygon>
                <Polygon>
                   ...
                </Polygon>
            </MultiGeometry>
        </Placemark>
        <Placemark>
            ...
        </Placemark>
        <Placemark>
            ...
        </Placemark>
    </Folder>
</kml>
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **新機能**
    - `multipolygon_to_kml`関数の返り値を`Vec<KmlPolygon}`に変更しました。
    - `indexed_multipolygon_to_kml`関数の返り値を`Vec<KmlPolygon}`に変更しました。
    - `multipolygon_to_kml_with_mapping`関数の返り値を`Vec<KmlPolygon}`に変更しました。
- `polygon_to_kml_polygon_with_mapping`という新しい関数を追加し、`KmlPolygon`を返します。
    - `polygon_to_kml_with_mapping`関数の返り値を`Vec<KmlPolygon}`に変更しました。
    - `polygon_to_kml`関数の返り値を`Vec<KmlPolygon}`に変更しました。
    - `indexed_polygon_to_kml`関数の返り値を`Vec<KmlPolygon}`に変更しました。
- **リファクタ**
    - KMLタイプの命名と構造を再編成しました。

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
xinmiaooo authored Feb 15, 2024
2 parents fb48e44 + 07aa483 commit 199acd3
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 344 deletions.
70 changes: 0 additions & 70 deletions nusamai-kml/examples/write_kml.rs

This file was deleted.

Loading

0 comments on commit 199acd3

Please sign in to comment.