[Qgis-user] Exporting Raster layer to text file
David Reid
davidreid6363 at gmail.com
Sun Sep 17 18:58:44 PDT 2017
Thanks Matt + other respondents to my question.
I should have been more specific - The raster image/data I am trying to export is a DEM which I would like to transfer to a 3D modelling system.
Using the raster/conversion/translate menu I have managed to get most of the way, using the ASCII gridded XYZ format output. This produces a text file with XY coordinates and the elevation Z.
BUT I would like the X and Y in planar grid coordinates (metres). I have selected a plane grid projection as the “target SRS” but it still produces X and Y as lat/long coordinates.
Any suggestions about what I am doing wrong?
Cheers
David Reid
From: Matt Boyd [mailto:mattslists at gmail.com]
Sent: Friday, 15 September 2017 3:28 PM
To: David Reid <davidreid6363 at gmail.com>
Cc: qgis-user <qgis-user at lists.osgeo.org>
Subject: Re: [Qgis-user] Exporting Raster layer to text file
David,
also you may find that even though you select a different format it only saves as a tiff. If you look at the box that states the command line gdaltranslate is using, the -o flag is the output format. You can check the box next to the command line and change that manually if it doesn't change to tiff automatically. Think it's a bug. the output format options can be googled "-o zmap" works.
On Fri, Sep 15, 2017 at 5:24 PM, Matt Boyd <mattslists at gmail.com <mailto:mattslists at gmail.com> > wrote:
Hi David,
rasters come in a few different flavours.
RGB/greyscale photographic type images such as an aerial photograph or a georeferenced scan of a map are one. There's not a lot of point exporting those as text.
There are also Raster images where the RGB / black bands represent a frequency or attribute from a satellite or remote sensing instrument, you might want to convert those to a different format to use in a different package or just select a single band to work on.
Single band raster such as grids or DEMS are another type of raster.
The last 2 types above can be saved in alternate formats under the "convert format" option in the raster dropdown options somewhere, can't remember the exact name.
I usually do this with grids / single band rasters. the command line option is gdaltranslate. "save as" doesn't work the same way it does as with vector data.
I don't have QGIS open at the so I can't recommend a format but I think CSV is one of them.
Good luck
Matt
On Wed, Sep 13, 2017 at 3:45 PM, David Reid <davidreid6363 at gmail.com <mailto:davidreid6363 at gmail.com> > wrote:
Hello qgis users,
I am very new to qgis and would like information on how to export raster data as a text file.
Cheers
David Reid
_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170918/e27f5927/attachment.html>
More information about the Qgis-user
mailing list