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?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
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
gdalwarp -overwrite -s_srs EPSG:4326 -t_srs EPSG:23034 -of VRT D:/Karten/Geotiff/N50E019.xyz D:/Karten/Geotiff/test.vrt
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 XYZand a new name:
gdal_translate -of XYZ D:/Karten/Geotiff/test.vrt D:/Karten/Geotiff/out.xyz