I'm trying to convert an XYZ file from WGS84 (lat/long) to UTM ED50 zone 34. QGIS can load the file as a raster, but I can't see a way of changing the coordinate system or exporting the results as an XYZ file.
Is this possible in QGIS?
coordinate systemqgisxyz
I'm trying to convert an XYZ file from WGS84 (lat/long) to UTM ED50 zone 34. QGIS can load the file as a raster, but I can't see a way of changing the coordinate system or exporting the results as an XYZ file.
Is this possible in QGIS?
Best Answer
Assuming you have an ASCII XYZ file with SRTM-like data loaded to the canvas:
Raster -> Projections -> Warp (Reproject)
Unfortunately, gdalwarp can not write XYZ raster files, so we use a vrt file for intermediate saving
The command line in the last box should be something like
Just hit
Ok
and the file should be created and added as new layer.No we translate the vrt to XYZ in a second step:
Raster -> Conversion -> Translate
ASCII gridded XYZ
and a new name:gdal_translate -of XYZ D:/Karten/Geotiff/test.vrt D:/Karten/Geotiff/out.xyz