|
| 1 | +# Add SpatialUnits to Section |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +This proposal is to add the `SpatialUnits/SpatialUnit` element sets as a child of a `Section`. It entails breaking out the current `SpatialUnit` element into a standalone complex type for reuse, which, upon implementation, will have no change in the current usage of `SpatialUnit` at the building level, i.e. it is a non-breaking change. |
| 6 | + |
| 7 | +## Justification |
| 8 | + |
| 9 | +In mixed use real-estate, a particular section of a building might be designated for multi-family residential. A user would then want to associate spatial units specifically to that section of the building rather than the building at a whole. Currently, we are able to define spatial units at the building level, but not at any other level of the premise. |
| 10 | + |
| 11 | +## Example |
| 12 | +```xml |
| 13 | + <auc:Buildings> |
| 14 | + <auc:Building ID="b1"> |
| 15 | + <auc:OccupancyClassification>Mixed-use commercial</auc:OccupancyClassification> |
| 16 | + <!-- SpatialUnit at the building level remains the same --> |
| 17 | + <auc:SpatialUnits> |
| 18 | + <auc:SpatialUnit> |
| 19 | + <auc:NumberOfUnits>1</auc:NumberOfUnits> |
| 20 | + </auc:SpatialUnit> |
| 21 | + </auc:SpatialUnits> |
| 22 | + <auc:Sections> |
| 23 | + <auc:Section ID="S1"> |
| 24 | + <auc:SectionType>Space function</auc:SectionType> |
| 25 | + <auc:OccupancyClassification>Multifamily</auc:OccupancyClassification> |
| 26 | + <!-- SpatialUnit added at the Section level --> |
| 27 | + <auc:SpatialUnits> |
| 28 | + <auc:SpatialUnit> |
| 29 | + <auc:NumberOfUnits>1</auc:NumberOfUnits> |
| 30 | + </auc:SpatialUnit> |
| 31 | + </auc:SpatialUnits> |
| 32 | + </auc:Section> |
| 33 | + </auc:Sections> |
| 34 | + </auc:Building> |
| 35 | +``` |
| 36 | + |
| 37 | +## Implementation |
| 38 | + |
| 39 | +The current `SpatialUnit` element is broken out into a standalone complex type as `SpatialUnitTypeType` |
| 40 | +```xml |
| 41 | +<xs:complexType name="SpatialUnitTypeType"> |
| 42 | + <xs:sequence> |
| 43 | + <xs:element name="SpatialUnitType" minOccurs="0"> |
| 44 | + <xs:annotation> |
| 45 | + <xs:documentation>Unit type within the premises.</xs:documentation> |
| 46 | + </xs:annotation> |
| 47 | + <xs:simpleType> |
| 48 | + <xs:restriction base="xs:string"> |
| 49 | + <xs:enumeration value="Lots"/> |
| 50 | + <xs:enumeration value="Parking spaces"/> |
| 51 | + <xs:enumeration value="Apartment units"/> |
| 52 | + <xs:enumeration value="Businesses"/> |
| 53 | + <xs:enumeration value="Guest rooms"/> |
| 54 | + <xs:enumeration value="Stations"/> |
| 55 | + <xs:enumeration value="Buildings"/> |
| 56 | + <xs:enumeration value="Areas"/> |
| 57 | + <xs:enumeration value="Thermal Zones"/> |
| 58 | + <xs:enumeration value="Floors"/> |
| 59 | + <xs:enumeration value="Rooms"/> |
| 60 | + <xs:enumeration value="Bedrooms"/> |
| 61 | + <xs:enumeration value="Other"/> |
| 62 | + <xs:enumeration value="Unknown"/> |
| 63 | + </xs:restriction> |
| 64 | + </xs:simpleType> |
| 65 | + </xs:element> |
| 66 | + <xs:element name="NumberOfUnits" minOccurs="0"> |
| 67 | + <xs:annotation> |
| 68 | + <xs:documentation>Number of individual units within the premises.</xs:documentation> |
| 69 | + </xs:annotation> |
| 70 | + <xs:complexType> |
| 71 | + <xs:simpleContent> |
| 72 | + <xs:extension base="xs:integer"> |
| 73 | + <xs:attribute ref="auc:Source"/> |
| 74 | + </xs:extension> |
| 75 | + </xs:simpleContent> |
| 76 | + </xs:complexType> |
| 77 | + </xs:element> |
| 78 | + <xs:element name="UnitDensity" minOccurs="0"> |
| 79 | + <xs:annotation> |
| 80 | + <xs:documentation>Number of units per 1,000 square feet.</xs:documentation> |
| 81 | + </xs:annotation> |
| 82 | + <xs:complexType> |
| 83 | + <xs:simpleContent> |
| 84 | + <xs:extension base="xs:decimal"> |
| 85 | + <xs:attribute ref="auc:Source"/> |
| 86 | + </xs:extension> |
| 87 | + </xs:simpleContent> |
| 88 | + </xs:complexType> |
| 89 | + </xs:element> |
| 90 | + <xs:element name="SpatialUnitOccupiedPercentage" minOccurs="0"> |
| 91 | + <xs:annotation> |
| 92 | + <xs:documentation>Percentage of the spatial units that are occupied. (0-100) (%)</xs:documentation> |
| 93 | + </xs:annotation> |
| 94 | + <xs:complexType> |
| 95 | + <xs:simpleContent> |
| 96 | + <xs:extension base="xs:decimal"/> |
| 97 | + </xs:simpleContent> |
| 98 | + </xs:complexType> |
| 99 | + </xs:element> |
| 100 | + </xs:sequence> |
| 101 | + </xs:complexType> |
| 102 | +``` |
| 103 | + |
| 104 | +At the Building and Section level, the implementation then looks like: |
| 105 | +```xml |
| 106 | + ... |
| 107 | + <xs:element name="SpatialUnits" minOccurs="0"> |
| 108 | + <xs:complexType> |
| 109 | + <xs:sequence> |
| 110 | + <xs:element name="SpatialUnit" type="auc:SpatialUnitTypeType" minOccurs="1" maxOccurs="unbounded"/> |
| 111 | + </xs:sequence> |
| 112 | + </xs:complexType> |
| 113 | + </xs:element> |
| 114 | + ... |
| 115 | +``` |
| 116 | + |
| 117 | +## References |
0 commit comments