Identifying Writer Feature Types

The reader marks all features with an attributelandxml_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 thenusesthis 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 attributelandxml_landxml_type, with a value for this attribute ofParcel, 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 attributelandxml_landxml_type, or that attribute doesn’t have a legal value, but the FME feature has a feature-type ofSurvey, then the feature will be interpreted as a Survey element.

Finally, if neither thelandxml_landxml_typeattribute, 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.