Re: [Qgis-user] Exporting Raster layer to text file
David, have you tried to transform the data to the X/Y projection as a separate process either before or after changing the format? I'm having issues getting QGIS installed here so I can't run through the process and tell you how. matt On Mon, Sep 18, 2017 at 11:58 AM, David Reid wrote: > 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:mattsli...@gmail.com] > *Sent:* Friday, 15 September 2017 3:28 PM > *To:* David Reid > *Cc:* qgis-user > *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 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 > 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@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > > > > > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Exporting Raster layer to text file
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:mattsli...@gmail.com] Sent: Friday, 15 September 2017 3:28 PM To: David Reid Cc: qgis-user 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 mailto:mattsli...@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 mailto:davidreid6...@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@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Exporting Raster layer to text file
You can use gdal2xyz algorithm from Processing to export raster values into CSV format. 2017-09-13 8:45 GMT+03:00 David Reid : > 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@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user -- Alexander Bruy ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
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 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 > 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@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >> > > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Exporting Raster layer to text file
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 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@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Exporting Raster layer to text file
Howdy. If I am not mistaken there is no useful information in a raster file that can be exported to a text file. They may not even allow it. Mike On 9/13/2017 3:00 PM, qgis-user-requ...@lists.osgeo.org 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@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user