xml-point-xy
This is a non-composite builder that constructs one point geometry object.
builder type: non-composite.
geometry constructed: point geometry.
data parameters:
|
Data Name |
Value |
Required/ |
|---|---|---|
|
x |
The x-coordinate of the point. |
Required |
|
y |
The y-coordinate of the point. |
Optional |
|
z |
The z-coordinate of the point. |
Optional |
|
decimal |
The string representing the decimal point for each real number in the data-string. Range: String Default: “.” |
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 |
Example
The following xml_point1.xmp xfMap document maps <point-A>, <point-B> and <point-C> elements from the xml_point1.xml input XML document.
xml_point1.xml
<?xml version="1.0" encoding="utf-8"?>
<points>
<point-A>
<y>14.0893181</y>
<x>-87.1847636</x>
<z>0.0</z>
</point-A>
</points>
xml_point1.xmp
<?xml version="1.0" encoding="utf-8"?>
<xfmap>
<feature-map>
<mapping match="point-A">
<feature-type>
<matched expr="local-name"/>
</feature-type>
<geometry activate="xml-point-xy">
<data name="x">
<extract expr="./x"/>
</data>
<data name="y">
<extract expr="./y"/>
</data>
<data name="z">
<extract expr="./z"/>
</data>
</geometry>
</mapping>
</feature-map>
</xfmap>
FME feature constructed:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: ' Attribute: fme_geometry' has value fme_point' Attribute: xml_type' has value xml_point' Geometry Type: Point (1) Number of Coordinates: 1 -- Coordinate Dimension: 3 -- Coordinate System: ' (14.0893181, -87.1847636, 0.0) ++========================================================================