Solved

ASCII to CSV

  • 15 November 2022
  • 4 replies
  • 78 views

Hello,

How can I convert an ASCII file to xyz csv file please?

Thank you

icon

Best answer by redgeographics 17 November 2022, 10:04

View original

4 replies

Userlevel 5
Badge +25

This is a very generic question. If you want a specific answer it would help if you could show us what your ASCII file looks like. Or do you mean an ASCII grid file?

Hello,

 

this is the file I want to convert. It's an numeric terrain model each 1m. So I need to have an csv file with coordinates and elevation like this: 893798.5, 6256850.5, 314image.pngThank you!

Userlevel 5
Badge +25

You could use a RasterCellCoercer to generate a point for every pixel and assign the band value as to an attribute automatically, then a CoordinateExtractor to get the x and y values too and write them out to a CSV file.

 

Alternatively, you may even get away with writing directly to a Point Cloud XYZ file.

It works!

Thank you very much

Reply