2

I use FME to make a series of transformations from an autocad file to a shapefile (with line geometry).

What I am trying to do is to also export (together with the shapefile) a CSV file containing the coordinates. More specifically I need to get only the first and last coordinate of each linestring in the shapefile.

How can I do this in FME 2014?

Right now I have managed to export only a CSV containing the attribute values corresponding to each line.

5

One option its to make use of 2 coordinateExtractors , 1 for index 0 (1st coordinate) and another with index -1 (last coordinate) . enter image description hereenter image description here

  • Thanks for the answer. How can I later export the coordinates to a CSV file in a way to have xi,yi,xf,yf? – user1919 Apr 30 '15 at 11:37
  • In FME2014 open up the Feature Type dialog and manually edit the attribute names. In 2015.0 you could just set the feature type to automatic and connect it up. – Mark Ireland Apr 30 '15 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.