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.

nmtoken
13.6k5 gold badges39 silver badges91 bronze badges
asked Apr 30, 2015 at 8:08

1 Answer 1

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

answered Apr 30, 2015 at 9:26
2
  • Thanks for the answer. How can I later export the coordinates to a CSV file in a way to have xi,yi,xf,yf? Commented Apr 30, 2015 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. Commented Apr 30, 2015 at 15:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.