OpenStreetMap (OSM) XML Feature Representation

In addition to the generic FME feature attributes that FME Workbench adds to all features (see About Feature Type Attributes), this format also adds format-specific attributes (Format Attributes).

Please see the Writer Overview for details on how the features are converted into OSM elements in the OSM Writer.

Geometry

The geometry features produced by the OSM reader can be identified by the xml_type attribute. The valid values for this attribute are:

xml_type

Description

xml_no_geom

FME Feature with no geometry.

xml_point

Point feature.

xml_line

Linear feature.

xml_area

Simple polygon, donut, or an aggregate of polygon and donut features.

No Geometry

xml_type: xml_no_geom

Features with their xml_type attribute set to xml_no_geom do not contain any geometry data.

Points

xml_type: xml_point

Features with their xml_type set to xml_point are single coordinate features or an aggregate of single points.

Lines

xml_type: xml_line

Features with their xml_type set to xml_line are polyline features or an aggregate of polylines.

Areas

xml_type: xml_polygon

Features with their xml_type set to xml_polygon are polygon features which may or may not have interior boundaries, or an aggregate of such polygons.