Skip to main content
Question

I have and AutoCAD DWG file with several polylines. I would like to get the coordinates from these lines saved to a .csv file. Is this possible? I am new to FME so will need a thorough explanation please.

  • Feb 16, 2023 10:28 PM UTC
  • 1 reply
  • 124 views

I have and AutoCAD DWG file with several polylines. I would like to get the coordinates from these lines saved to a .csv file. Is this possible? I am new to FME so will need a thorough explanation please.

1 reply

DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • Feb 17, 2023 12:17 AM UTC

Hi @johnpaterson123​ If you want one line to be one record in the CSV, use a GeometryExtractor to extract the geometry to WKT format and write that out as an attribute in the CSV.

 

If you want each vertex to become a record in the CSV, then use a Chopper (chop to 1) and a CoordinateExtractor to get X,Y (and Z) attributes. You'll also want a unique identifier per line (e.g. using a Counter) so that the line can be recreated from this CSV later.