Question

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

  • 21 June 2018
  • 4 replies
  • 92 views

Badge

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

Badge +22

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.

Badge

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

Badge

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

Badge

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

Reply