Skip to main content
10000+ Posts
Parsing points and lines from text file coordinate lists

I have some data in text files that may contain both points and lines. Each line contains a code and either a sub-code or a coordinate set: 05 1          2302     6826513.392   548235.740  257.374            05 31         2302     6826704.339   548284.671  275.511            09 91 05 1          2302     6826513.392   548235.740  257.374            05 2          2302     6826518.762   548233.548  257.950            05 3          2302     6826525.326   548234.694  258.184            05 4          2302     6826532.691   548235.254  258.606            09 99The first column is the first code, '05' is always followed by a coordinate, '09' is always followed by a sub-code: '09 91' defines start of a line, '09 99' defines end of a line. So the short example above contains two points and a polyline with four vertices. Any suggestions on how I can turn this text file into two points and a polyline?I

Badge Winners

  • Welcome Back
    okainunoohas earned the badge Welcome Back
  • FME Flow Certified Professional
    kruti_811has earned the badge FME Flow Certified Professional
  • FME Certified Professional
    bkjhas earned the badge FME Certified Professional
  • Expert (Bronze)
    timatsafehas earned the badge Expert (Bronze)
  • FME Form Advanced Training
    mike_greshhas earned the badge FME Form Advanced Training
Show all badges

Community Stats

32,431
Posts
123,238
Replies
40,558
Members