Identifying Writer Feature Types

The reader marks all features with an attribute landxml_landxml_type. This provides a way of tracking the origin of a feature from a particular document. The range of values for this attribute are those LandXML element types which are used as the head of a feature. The writer then uses this attribute to determine where in the LandXML destination document the information for this feature should go.

For example, if an FME feature is given to the writer, and it has an attribute landxml_landxml_type, with a value for this attribute of Parcel, then that feature will be interpreted as a Parcel element.

If there is no such attribute, or the attribute has a value that is not recognized, then the writer takes the feature-type as the intended destination. That is, if there is no attribute landxml_landxml_type, or that attribute doesn’t have a legal value, but the FME feature has a feature-type of Survey, then the feature will be interpreted as a Survey element.

Finally, if neither the landxml_landxml_type attribute, nor the feature-type of a feature can determine how to interpret the feature, the writer will either fail, or attempt to determine the type based on the geometry of the feature in question.