Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have just exported a tif DEM to XYZ format with SAGA GIS. When I check this with gdalinfo it states that the format is unsupported?

Seeing as I converted this with saga gis which used gdal I find this rather strange.

Can anyone suggest what I did wrong?

thanks.

share|improve this question

1 Answer

I have also had problems with XYZ files not being recognized in gdal. I don't necessarily think that you did anything wrong. GDAL will only open gridded XYZ data files (see here). Ungridded XYZ files need to be handled in some other way. I suspect (but don't know for sure) that what SAGA has exported is an ungridded XYZ format.

In my particular use-case, I had ungridded headerless XYZ files. I worked around the problem by opening the XYZ file in a text editor and adding a header line in the format: x,y,z. I then treated the file as a csv point dataset and used gdal_rasterize to convert to a raster. I had a lot of files so I wrote a little Python script as a batch process. I hope that helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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