Polygons

spatialware_type: spatialware_polygon

Features with this value are closed 2D or 3D features that are polygons. An polygon may or may not contain holes (may or may not be a donut polygon). This is used by both the reader and the writer.

Note: When reading polygons from SpatialWare, it is possible to encounter a polygon that is not closed or is composed of a non-contiguous path. In these cases, the pieces of the invalid polygon are all returned as lines instead.

Polygon features have the following special attributes associated with them:.

Attribute Name

Contents

spatialware_rotation

The rotation of the feature. The rotation is measured in degrees counterclockwise up from the horizontal.

spatialware_centroid_x

The feature’s centroid X location.

spatialware_centroid_y

The feature’s centroid Y location.

spatialware_centroid_z

The feature’s centroid Z location.

spatialware_polygon_centroid_x

The feature’s assigned centroid X location.

spatialware_polygon_centroid_y

The feature’s assigned centroid Y location.

spatialware_polygon_centroid_z

The feature’s assigned centroid Z location.

spatialware_fixed_pinch

The outer shell of some degenerate polygons may loop back on themselves and “pinch” closed back on the first/last coordinate somewhere in the middle. In these cases, FME will fix these polygons by adding the inner pinched area as a hole and set this flag to YES. In all other cases, this attribute will not be put on the feature when read. This attribute is ignored when writing to SpatialWare.