Skip to content

Commit

Permalink
Merge pull request #120 from MIERUNE/feature/realesteate-id
Browse files Browse the repository at this point in the history
不動産IDの読み込み対応
  • Loading branch information
kntoshiya authored Mar 18, 2024
2 parents 9cd182e + b128273 commit 47c96d9
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plateau_plugin/metadata.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[general]
name=PLATEAU QGIS Plugin
version=0.0.5
version=0.0.6
qgisMinimumVersion=3.6
description=Import the PLATEAU 3D city model data (CityGML) used in Japan — PLATEAU 3D都市モデルのCityGMLファイルをQGISに読み込みます
author=MLIT Japan
Expand Down
2 changes: 2 additions & 0 deletions plateau_plugin/plateau/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
BUILDING_INT_INSTALLATION,
BUILDING_OPENING,
LARGE_CUSTOMER_FACILITY_ATTRIBUTE,
REAL_ESTATE_ID_ATTRIBUTE,
)
from .cityfurniture import CITY_FURNITURE, CITY_FURNITURE_DETAIL_ATTRIBUTE
from .generics import GENERIC_CITY_OBJECT
Expand Down Expand Up @@ -81,6 +82,7 @@
BUILDING_FURNITURE,
BUILDING_DETAIL,
LARGE_CUSTOMER_FACILITY_ATTRIBUTE,
REAL_ESTATE_ID_ATTRIBUTE,
# bridge
BRIDGE,
BRIDGE_BOUNDARY_SURFACE,
Expand Down
47 changes: 47 additions & 0 deletions plateau_plugin/plateau/models/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"./uro:buildingDetails/uro:BuildingDetails", # PLATEAU v1.x
"./uro:largeCustomerFacilityAttribute/uro:LargeCustomerFacilityAttribute",
"./uro:largeCustomerFacilities/uro:LargeCustomerFacilities", # PLATEAU v1.x
"./uro:bldgRealEstateIDAttribute/uro:RealEstateIDAttribute",
],
attribute_groups=[
AttributeGroup(
Expand Down Expand Up @@ -709,3 +710,49 @@
],
geometries=GeometricAttributes(),
)


REAL_ESTATE_ID_ATTRIBUTE = FeatureProcessingDefinition(
id="uro:RealEstateIDAttribute",
name="RealEstateIDAttribute",
target_elements=["uro:RealEstateIDAttribute"],
non_geometric=True,
attribute_groups=[
AttributeGroup(
base_element=None,
attributes=[
Attribute(
name="realEstateIDOfBuilding",
path="./uro:realEstateIDOfBuilding",
datatype="string",
),
Attribute(
name="numberOfBuildingUnitOwnership",
path="./uro:numberOfBuildingUnitOwnership",
datatype="integer",
),
Attribute(
name="realEstateIDOfBuildingUnitOwnership",
path="./uro:realEstateIDOfBuildingUnitOwnership",
datatype="string",
),
Attribute(
name="numberOfRealEstateIDOfLand",
path="./uro:numberOfRealEstateIDOfLand",
datatype="integer",
),
Attribute(
name="realEstateIDOfLand",
path="./uro:realEstateIDOfLand",
datatype="string",
),
Attribute(
name="matchingScore",
path="./uro:matchingScore",
datatype="integer",
),
],
),
],
geometries=GeometricAttributes(),
)

0 comments on commit 47c96d9

Please sign in to comment.