.. _wfs_feature_type_settings_chapter: Feature type settings ~~~~~~~~~~~~~~~~~~~~~ With the *feature type* settings, you can control which feature types can be queried from the 3D City Database and are served through the WFS interface. Every feature type that shall be advertised to a client must be explicitly listed in the ``config.xml`` file. An example of the corresponding ```` XML element is shown below. In this example, CityGML *Building* and *Road* objects are available from the WFS service. In addition, a third feature type *IndustrialBuilding* coming from a CityGML ADE is advertised. .. code-block:: xml Building -180 -90 180 90 Road -180 -90 180 90 IndustrialBuilding -180 -90 180 90 2.0 1.0 The ```` element contains one ```` node per feature type to be advertised. The feature type is specified through the mandatory *name* property, which can only take values from a fixed list that enumerates the names of the CityGML top-level features (cf. ``config.xsd`` schema file). In addition, the geographic region covered by all instances of this feature type in the 3D City Database can optionally be announced as *bounding box* (lower left and upper right corner). The coordinate values must be given in WGS 84. .. note:: The bounding box is neither automatically checked against nor computed from the database, but rather copied to the WFS *capabilities* document “as is”. Feature types coming from a CityGML ADE are advertised using the ```` element. In contrast to CityGML feature types, the *name* property must additionally contain the globally unique XML *namespace URI* of the CityGML ADE, and the type name is not restricted to a fixed enumeration. Note that a corresponding *ADE extension* must be installed for the WFS service, and that the ADE extension must add support for the advertised ADE feature type. Otherwise, the ADE feature type is ignored. If you do not have ADE extensions, then simply skip the ```` element. Besides the list of advertised feature types, also the CityGML *version* that shall be supported for encoding features in a response to a client’s request has to be specified. Use the ```` element for this purpose, which takes either 2.0 (for CityGML 2.0) or 1.0 (for CityGML 1.0) as value. If both versions shall be supported, simply use two ```` elements. However, in this case, you should define the *default version* to be used by the WFS by setting the *isDefault* attribute to true on one of the elements (otherwise, CityGML 2.0 will be the default). .. note:: If your ```` element contains CityGML or ADE feature types that are not available for the chosen CityGML version, they are automatically removed from the list and are **not advertised** to clients by the WFS server.