Skip to main content
Question

How to extract the coordinates (x,y,z) of all vertices of a polygon and add it as attribut


Forum|alt.badge.img

Hi,

I am new in using FME and it seems that there are something that I am missing, I found the

"CoordinateConcatenator" transformer that I think can do what I need. I open my shape file as a reader ,I choose the CoordinateConcatenator transformer and then I choose a new shapefile file as writer (output).

It runs with no error but no new attributes containng the coordinated of the vertices in the output file.

I tried to add attribuet creator, attribute writer ,nothing works ,what am I missing?

Thanks for your help!

4 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • June 21, 2018

Is the attribute containing the coordinates listed on the shapefile writer feature type? If your user attribute definition is not set to automatic, you'll have to add it manually.


Forum|alt.badge.img
  • Author
  • June 21, 2018

Thanks for your answer! does this what do you mean? userattributes.jpg


Forum|alt.badge.img
  • Author
  • June 21, 2018

the-coordinat is the name of the field that i creat with coordinateConcatenatot transformer


Forum|alt.badge.img
  • Author
  • June 21, 2018

actually ,it worked when the geometry was lines . When I use polygons ,the shape file name changes to "fme_feature_type" and no output


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