I'm trying to extract a polygon from a xml document, but no luck so far. This is what I got:
The xml-document looks like this:
<?xml version="1.0" encoding="UTF-8"?> <ns8:MainNode xmlns:ns8="http://www.somesite.com"> <ns8:Name>test</ns8:Name> <ns8:No>0065525031</ns8:No>
...... <ns8:Locatie xmlns:ns3="http://www.opengis.net/gml" axisLabels="x y" srsDimension="2" srsName="epsg:28992" uomLabels="m m"> <ns3:exterior> <ns3:LinearRing> <ns3:description xmlns:ns2="http://www.w3c.org/1999/xlink"/> <ns3:name/> <ns3:posList>96154 411149 96072 411090 96153 410990 96235 411069 96154 411149</ns3:posList> </ns3:LinearRing> </ns3:exterior> </ns8:Locatie>
.... </ns8:MainNode >
I'm reading this xml-file with an FME xml reader, with the following setting:
Configuration Type: Feature Paths
Elements to match: MainNode
Flattening Enabled
Now my reader outputs as a whole bunch of attributes:
Name
No
..
Locatie.axisLabels
Locatie.exterior.LinearRing.description
Locatie.exterior.LinearRing.description.ns
Locatie.exterior.LinearRing.name
Locatie.exterior.LinearRing.postList
Locatie.ns3
Locatie.srsDimension
Locatie.srsName
Locatie.uomLabels
..
I though I should use the GeometryhReplacer to extract the geometry from this, but I'm unsure how to configure it:
-What is the Geometry encoding I should use?
-What is the correct Source Geometry Atrribute
I hope someone can help.
Regards,
Koen Vermeer


