From cd4496c5568e1ca493dcec989179206712a4c3eb Mon Sep 17 00:00:00 2001 From: Taku Fukada Date: Fri, 8 Mar 2024 16:27:49 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20bldg:class=20=E3=81=AE=E6=89=B1=E3=81=84?= =?UTF-8?q?=E3=81=8C=E6=8A=9C=E3=81=91=E3=81=A6=E3=81=84=E3=82=8B=20(#119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: bldg:class is missing * bump to 0.0.5 * ruff format --- plateau_plugin/metadata.txt | 2 +- plateau_plugin/plateau/models/building.py | 6 ++++++ plateau_plugin/plateau/models/landuse.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plateau_plugin/metadata.txt b/plateau_plugin/metadata.txt index aef28a1..0585b21 100644 --- a/plateau_plugin/metadata.txt +++ b/plateau_plugin/metadata.txt @@ -1,6 +1,6 @@ [general] name=PLATEAU QGIS Plugin -version=0.0.4 +version=0.0.5 qgisMinimumVersion=3.6 description=Import the PLATEAU 3D city model data (CityGML) used in Japan — PLATEAU 3D都市モデルのCityGMLファイルをQGISに読み込みます author=MLIT Japan diff --git a/plateau_plugin/plateau/models/building.py b/plateau_plugin/plateau/models/building.py index e75ebd7..9bd6cfa 100644 --- a/plateau_plugin/plateau/models/building.py +++ b/plateau_plugin/plateau/models/building.py @@ -23,6 +23,12 @@ AttributeGroup( base_element=None, attributes=[ + Attribute( + name="class", + path="./bldg:class", + datatype="[]string", + predefined_codelist="Building_class", + ), Attribute( name="usage", path="./bldg:usage", diff --git a/plateau_plugin/plateau/models/landuse.py b/plateau_plugin/plateau/models/landuse.py index b29c3c9..470b9b0 100644 --- a/plateau_plugin/plateau/models/landuse.py +++ b/plateau_plugin/plateau/models/landuse.py @@ -158,7 +158,7 @@ ], collect_all=[ "./luse:lod0MultiSurface//gml:Polygon", # NOTE: PLATEAU 2.0 compatibility - "./luse:lod1MultiSurface//gml:Polygon" + "./luse:lod1MultiSurface//gml:Polygon", ], ), ),