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

不動産IDの読み込み対応 #120

Merged
merged 4 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(),
)
Loading