Skip to main content
Question

Output Line vertices coordinates to XML (concatenated)

  • November 7, 2024
  • 3 replies
  • 49 views

reservoirdog
Supporter
Forum|alt.badge.img+10

I have lines and their vertices should be written to XML (using XSD-driven XML-Writer).
I extract the vertices coordinates into lists using the “coordinate extractor” .

Now I need to find a way to output those coordinate pairs to xml, so that the output looks like this:

Is there a way using the “list concatenator”?

3 replies

kailinatsafe
Safer
Forum|alt.badge.img+21

Hello @reservoirdog, how is the data coming into FME Form? What does the source data look like? Would it be possible to concatenate these values in an AttributeManager before sending data to the writer? Alternatively, if the schema expects a xml_buffer, you could try to explode the list (ListExploder) to structure the XML yourself in a XMLTemplater. Hope this helps, Kailin!


reservoirdog
Supporter
Forum|alt.badge.img+10
  • Author
  • Supporter
  • November 12, 2024

Hi @kailinatsafe and Thanks for your inputs. Data is coming from Oracle Spatial as Polylines.

The solution in the end was quite simple:

I had to rename the lists using the “ListRenamer”, this had to be done for x as well as y.

Renaming the lists created by coordinate extractor

 

No further steps were necessary to output these to the corresponding Attributes (childs) of my XML-Object:

 


kailinatsafe
Safer
Forum|alt.badge.img+21

@reservoirdog so glad you got it working - thank you for the update!😊


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings