Configuration-based type setup
A <type> element defines a Geo-Object Type or a group. It goes inside an <organization> element.
XSD definition
<xs:complexType name="type">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="attributes" type="attributes" minOccurs="0" />
<xs:element name="group-item" type="group-item" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required" />
<xs:attribute name="label" type="xs:string" use="required" />
<xs:attribute name="description" type="xs:string" use="optional" />
<xs:attribute name="visibility" type="visibility" use="optional" />
<xs:attribute name="geometryType" type="geometryType" use="required" />
<xs:attribute name="isGeometryEditable" type="xs:boolean" />
<xs:attribute name="isGroup" type="xs:boolean" />
<xs:attribute name="conceptSet" type="xs:string" use="optional" />
<xs:attribute name="startDate" type="xs:string" use="optional" />
<xs:attribute name="endDate" type="xs:string" use="optional" />
<xs:attribute name="rootTerm" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="group-item">
<xs:attribute name="code" type="xs:string" use="required" />
<xs:attribute name="label" type="xs:string" use="required" />
<xs:attribute name="description" type="xs:string" use="optional" />
</xs:complexType>
<xs:simpleType name="visibility">
<xs:restriction base="xs:string">
<xs:enumeration value="PRIVATE" />
<xs:enumeration value="PUBLIC" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="geometryType">
<xs:restriction base="xs:string">
<xs:enumeration value="POINT" />
<xs:enumeration value="LINE" />
<xs:enumeration value="POLYGON" />
<xs:enumeration value="MIXED" />
</xs:restriction>
</xs:simpleType>code, label, description
The type's code, label and description.
visibility
PUBLIC or PRIVATE.
geometryType
POINT, LINE, POLYGON or MIXED.
isGeometryEditable
Whether geometries can be edited with the web-based editing tools.
isGroup
true to create a group. Each <group-item> inside it creates a Geo-Object Type in the group.
conceptSet, startDate, endDate, rootTerm
Adds a classification to the type, using the Concept Set with this code. See Concept Sets.
Attribute XSD definition
Put attributes inside an <attributes> element. The same attribute elements are used for Business Types and Concept Classes.
The schema still includes a term attribute type with option elements, but term attributes aren't imported in this version. Use a Concept Set classification instead.
Example
Last updated