Documentation for CityGML

Element: PostalCode

[Table of contents]

Name PostalCode
Used by (from the same schema document) Complex Type DependentLocalityType , Complex Type FirmType , Complex Type LargeMailUserType , Complex Type SubPremiseType , Element Locality , Element Thoroughfare , Element AdministrativeArea , Element AdministrativeArea , Element PostOffice , Element PostBox , Element Department , Element Premise
Type Locally-defined complex type
Nillable no
Abstract no
Documentation PostalCode is the container element for either simple or complex (extended) postal codes. Type: Area Code, Postcode, etc.
Logical Diagram
h1885024549
XML Instance Representation
<PostalCode
Type="anySimpleType [0..1]

'Area Code, Postcode, Delivery code as in NZ, etc'

"
Allow any attributes from a namespace other than this schema's namespace (strict validation).
>
<AddressLine> ... </AddressLine> [0..*]
<PostalCodeNumber
Type="anySimpleType [0..1]

'Old Postal Code, new code, etc'

"

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 a postcode. The postcode is formatted according to country-specific rules. Example: SW3 0A8-1A, 600074, 2067'

<PostalCodeNumberExtension
Type="anySimpleType [0..1]

'Delivery Point Suffix, New Postal Code, etc..'

"

NumberExtensionSeparator="anySimpleType [0..1]

'The separator between postal code number and the extension. Eg. \"-\"'

"

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..*]

'Examples are: 1234 (USA), 1G (UK), etc.'

<PostTown
Type="anySimpleType [0..1]

'eg. village, town, suburb, etc'

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

'A post town is not the same as a locality. A post town can encompass a collection of (small) localities. It can also be a subpart of a locality. An actual post town in Norway is \"Bergen\".'


<AddressLine> ... </AddressLine> [0..*]
<PostTownName
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..*]

'Name of the post town'

<PostTownSuffix
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..1]

'GENERAL PO in MIAMI GENERAL PO'

</PostTown>
Allow any elements from a namespace other than this schema's namespace (strict validation). [0..*]
</PostalCode>
Diagram
h1885024549 h447686930 h447686930 h1885024549 h447686930 h447686930
Schema Component Representation
<xs:element name="PostalCode">
<xs:complexType>
<xs:sequence>
<xs:element ref=" AddressLine " minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="PostalCodeNumber" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="Type"/>
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="PostalCodeNumberExtension" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="Type"/>
<xs:attribute name="NumberExtensionSeparator"/>
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="PostTown" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref=" AddressLine " minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="PostTownName" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="Type"/>
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="PostTownSuffix" minOccurs="0">
<xs:complexType mixed="true">
<xs:attributeGroup ref=" grPostal "/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Type"/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Type"/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>