Documentation for CityGML

Complex Type: SubPremiseType

[Table of contents]

Super-types: None
Sub-types: None
Name SubPremiseType
Used by (from the same schema document) Complex Type SubPremiseType , Element Premise
Abstract no
XML Instance Representation
<...
Type="anySimpleType [0..1]"
Allow any attributes from a namespace other than this schema's namespace (strict validation).
>
<AddressLine> ... </AddressLine> [0..*]
<SubPremiseName
Type="anySimpleType [0..1]"
TypeOccurrence=" xs:NMTOKEN (value comes from list: {'Before'|'After'}) [0..1]

'EGIS Building where EGIS occurs before Building'

"

Code="anySimpleType [0..1]

'Used by postal services to encode the name of the element.'

"
Allow any attributes from a namespace other than this schema's namespace (strict validation).
/> [0..*]

'Name of the SubPremise'

Start Choice [0..1]
<SubPremiseLocation
Code="anySimpleType [0..1]

'Used by postal services to encode the name of the element.'

"
/> [1]

'Name of the SubPremise Location. eg. LOBBY, BASEMENT, GROUND FLOOR, etc...'

<SubPremiseNumber
Indicator="anySimpleType [0..1]

'"TH" in 12TH which is a floor number, "NO." in NO.1, "#" in APT #12, etc.'

"

IndicatorOccurrence=" xs:NMTOKEN (value comes from list: {'Before'|'After'}) [0..1]

'"No." occurs before 1 in No.1, or TH occurs after 12 in 12TH'

"

NumberTypeOccurrence=" xs:NMTOKEN (value comes from list: {'Before'|'After'}) [0..1]

'12TH occurs \"before\" FLOOR (a type of subpremise) in 12TH FLOOR'

"

PremiseNumberSeparator="anySimpleType [0..1]

'"/" in 12/14 Archer Street where 12 is sub-premise number and 14 is premise number'

"

Type="anySimpleType [0..1]"
Code="anySimpleType [0..1]

'Used by postal services to encode the name of the element.'

"
Allow any attributes from a namespace other than this schema's namespace (strict validation).
/> [0..*]

'Specification of the identifier of a sub-premise. Examples of sub-premises are apartments and suites. sub-premises in a building are often uniquely identified by means of consecutive identifiers. The identifier can be a number, a letter or any combination of the two. In the latter case, the identifier includes exactly one variable (range) part, which is either a number or a single letter that is surrounded by fixed parts at the left (prefix) or the right (postfix).'

End Choice
<SubPremiseNumberPrefix
NumberPrefixSeparator="anySimpleType [0..1]

'A-12 where 12 is number and A is prefix and \"-\" is the separator'

"

Type="anySimpleType [0..1]"
Code="anySimpleType [0..1]

'Used by postal services to encode the name of the element.'

"
Allow any attributes from a namespace other than this schema's namespace (strict validation).
/> [0..*]

'Prefix of the sub premise number. eg. A in A-12'

<SubPremiseNumberSuffix
NumberSuffixSeparator="anySimpleType [0..1]

'12-A where 12 is number and A is suffix and \"-\" is the separator'

"

Type="anySimpleType [0..1]"
Code="anySimpleType [0..1]

'Used by postal services to encode the name of the element.'

"
Allow any attributes from a namespace other than this schema's namespace (strict validation).
/> [0..*]

'Suffix of the sub premise number. eg. A in 12A'

<BuildingName> BuildingNameType </BuildingName> [0..*]

'Name of the building'

<Firm> FirmType </Firm> [0..1]

'Specification of a firm, company, organization, etc. It can be specified as part of an address that contains a street or a postbox. It is therefore different from a large mail user address, which contains no street.'

<MailStop> MailStopType </MailStop> [0..1]

'A MailStop is where the the mail is delivered to within a premise/subpremise/firm or a facility.'

<PostalCode> ... </PostalCode> [0..1]
<SubPremise> SubPremiseType </SubPremise> [0..1]

'Specification of a single sub-premise. Examples of sub-premises are apartments and suites. Each sub-premise should be uniquely identifiable. SubPremiseType: Specification of the name of a sub-premise type. Possible values not limited to: Suite, Appartment, Floor, Unknown Multiple levels within a premise by recursively calling SubPremise Eg. Level 4, Suite 2, Block C'

Allow any elements from a namespace other than this schema's namespace (strict validation). [0..*]
</...>
Diagram
h1885024549 h1885024549 h447686930 h447686930 h447686930 h447686930 h447686930 h447686930 h447686930 h447686930 h447686930 h447686930 h453828251 h453828251
Schema Component Representation
<xs:complexType name="SubPremiseType">
<xs:sequence>
<xs:element ref=" AddressLine " minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="SubPremiseName" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="Type"/>
<xs:attribute name="TypeOccurrence">
<xs:simpleType>
<xs:restriction base=" xs:NMTOKEN ">
<xs:enumeration value="Before"/>
<xs:enumeration value="After"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:choice minOccurs="0">
<xs:element name="SubPremiseLocation">
<xs:complexType mixed="true">
<xs:attributeGroup ref=" grPostal "/>
</xs:complexType>
</xs:element>
<xs:element name="SubPremiseNumber" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="Indicator"/>
<xs:attribute name="IndicatorOccurrence">
<xs:simpleType>
<xs:restriction base=" xs:NMTOKEN ">
<xs:enumeration value="Before"/>
<xs:enumeration value="After"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="NumberTypeOccurrence">
<xs:simpleType>
<xs:restriction base=" xs:NMTOKEN ">
<xs:enumeration value="Before"/>
<xs:enumeration value="After"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="PremiseNumberSeparator"/>
<xs:attribute name="Type"/>
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:element name="SubPremiseNumberPrefix" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="NumberPrefixSeparator"/>
<xs:attribute name="Type"/>
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="SubPremiseNumberSuffix" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="NumberSuffixSeparator"/>
<xs:attribute name="Type"/>
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="BuildingName" type=" BuildingNameType " minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Firm" type=" FirmType " minOccurs="0"/>
<xs:element name="MailStop" type=" MailStopType " minOccurs="0"/>
<xs:element ref=" PostalCode " minOccurs="0"/>
<xs:element name="SubPremise" type=" SubPremiseType " minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Type"/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>