fme-geometry

This is a non-composite builder that deserializes different geometry types from different geometry serializations.

builder type: non-composite

geometry constructed: All FME-supported geometries.

data parameters:

Data Name

Value

Required/
Optional

data-string

The string containing the serialized geometry.

Range: String

Required

encoding

Specifies the encoding of the serialized geometry. The encoding maybe the FME XML geometry representation, the FME hex encoded binary geometry serialization, the OGC hex encoded WKB serialization or the OGC WKT serialization.

Range: fme-xml | fme-binary-hex | ogc-wkb-hex | ogc-wkt

Default: fme-xml

Optional

coordinate-system

Specifies the coordinate system name. If the expression sequence for the coordinate-system evaluates to the empty string, then the coordinate system for the feature being built will not be set.

Range: String

Optional

name

Specifies the geometry’s name.

Range: String

Optional

The following example illustrates the usage of the fme-geometry builder.

fmegeometry.xml

<?xml version="1.0"?>
<feature>
	<geom>POINT (-0.915929 0.482301)</geom>
</feature>

fmegeometry.xmp

<?xml version="1.0"?>
<xfMap>
	<feature-map>
		<mapping match="feature">
			<feature-type> <literal expr="feature" /> </feature-type>
			<geometry activate="fme-geometry">
				<data name="encoding"><literal expr="ogc-wkt"/></data>
				<data name="data-string">
					<extract expr="./geom"/>
				</data>            
			</geometry>
		</mapping>
	</feature-map>
</xfMap>