OGC CityGML Reader Parameters

CityGML Schema Options

Reader Driven by CityGML Schema

If set to Yes (the recommended setting), this parameter reads the core CityGML schema files as well as the schema files specified in either xsi:schemaLocation attribute in the XML document or ADE_XSD_DOC directive to determine the feature types and feature attributes of the dataset.

It is recommended that this parameter be set to Yes for new workspaces and mapping files reading CityGML 1.0, 1.1 and various ADE datasets.

Note: You can duplicate the CityGML reader’s behavior for workspaces older than FME 2012 by setting this parameter to No. Please note that setting this parameter to Yes is not backward compatible if the dataset contains NoiseADE data.

Additional ADE Schema File(s)

This parameter can be used only if the Reader Driven by CityGML Schema parameter is set to Yes. The schema files specified here will override those specified in xsi:schemaLocation attribute in the XML document.

Validate GML Dataset File

Determines whether the reader should validate the specified dataset file.

Ignore xsi:schemaLocation in Dataset

This parameter can be used to tell the reader to ignore the schema files that are specified in the xsi:schemaLocation attribute of the root element in the dataset. This is particularly useful if the file locations specified in xsi:schemaLocation are not valid file paths.

Add XML Namespace Prefix to Feature Types

FME feature type names may include the XML Namespace prefixes used in the GML application schema. The prefix will be separated from the names by an underscore.

Setting this parameter is necessary when a GML dataset contains feature types with the same name in different namespaces.

By default, the prefixes are not added to the feature type names.

CityGML Version – For Importing Feature Types Without Dataset

This parameter is applicable only in scenarios when the reader dataset field is empty.

For example, the Reader dataset might not yet exist when the CityGML reader is used to "Import Feature Types" to the CityGML writer.

Note: This parameter does not override the Additional ADE Schema File(s) parameter.

FME Schema Options

Include Only Feature Types in Dataset

If selected, only the feature types found in the dataset will be created. Otherwise, all feature types that are found in CityGML core and additional schema files (as specified in Additional ADE Schema File(s) or xsi:schemaLocation) will be created.

Include Generic Attributes as Feature Types: If selected, an extra GenericAttribute feature type will be created to hold all the features created from generic attribute elements (stringAttribute, intAttribute, doubleAttribute and so on).

Include X3DMaterial, ParameterizedTexture and GeoreferencedTexture as Feature Types: If selected, feature types for X3DMaterial, ParameterizedTexture and GeoreferencedTexture elements will be created.

Include Generic Attributes in FME Schema: Regardless of the value specified here, generic attribute will always be read as FME attributes. If this option is selected, those attributes will also show up in FME schema.

CityGML Options

Add xlink_href Traits from Geometry Reference

If set to Yes (the default), the reader adds xlink_href geometry Traits to the FME geometries that were instantiated from GML xlink:href reference geometries.

In addition, if the xlink:href geometry reference is from a base surface of a GML OrientableSurface that needs to be reversed, the reader also adds a gml_geometry_reversed boolean trait set to Yes to the FME geometry.

LODs to Read

CityGML supports five Levels of Detail (LODs). This parameter instructs the reader to discard geometries that are a specific level of detail. By default, all LODs are selected. The valid values are:

  • LOD 0 – This is the coarsest level of detail. For example, general topology, landscapes.
  • LOD 1 – Low level of detail. For example, simple prismatic buildings and general landscape features.
  • LOD 2 – Mid level of detail. For example, some architectural features in building models, greater detail in transportation, vegetation, and outdoor furniture features.
  • LOD 3 – High level of detail. For example, buildings and outdoor objects as they would actually appear.
  • LOD 4 – Very high level of detail. For example, detailed interior structures like rooms, doors, and furniture.

Note that the parameter will be ignored if no LODs are selected.

Tip: This parameter may be used to quickly view a single LOD layer from a multi-LOD dataset in the FME Data Inspector.

SRS Parameters

GML SRS Axis Order

Overrides the axis order when reading coordinate tuples in a CityGML <pos> or <posList> element. Valid values are "1,2", "2,1", “1,2,3” and “2,1,3”.

Texture Coordinate Order to follow SRS Axis Order

This directive should only be set to YES if the source datasets have texture coordinates and were created by the CityGML writer in FME versions prior to FME 2012. Otherwise, it should be set to NO.

Use Network Authentication

This parameter is always visible in some formats, and visible in other formats only when the dataset is a URL.