[GRASS-user] Using grass to create elevation and orthoimagery for 3d package (needs tiff format)

Hi

Can someone please direct me to a tutorial/workflow on how to load dem files (elevation .adf and imagery jp2) downloaded from USGS into grass with the sole purpose of stitching them and exporting tiff files to represent elevation and orthimagery for use in a 3D software.
I just dowloaded and installed grass7.4.1

Help is highly appreciated as I have been trying to find anything online with no luck.

R

Rasha Shalaby wrote

Hi

Can someone please direct me to a tutorial/workflow on how to load dem
files (elevation .adf and imagery jp2) downloaded from USGS into grass
with the sole purpose of stitching them and exporting tiff files to
represent elevation and orthimagery for use in a 3D software.
I just dowloaded and installed grass7.4.1

Help is highly appreciated as I have been trying to find anything online
with no luck.

not a GRASS solution, but by GDAL (https://www.gdal.org/index.html)

- Build a VRT from a list of datasets by gdalbuildvrt
(https://www.gdal.org/gdalbuildvrt.html)
- Convert VRT to tiff by gdal_translate
(https://www.gdal.org/gdal_translate.html)

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

I am certain is is a grass solution. I am able to load one .adf and export as png (which i can convert to tif).

The main issue I am facing is being able to stitch multiple .adf (tiles) into one and lining it up with the orthoimagery.

Any help is much appreciated

tx
r

On Tue, Oct 2, 2018 at 11:02 AM Rasha Shalaby <rasha.fx@gmail.com> wrote:

Hi

Can someone please direct me to a tutorial/workflow on how to load dem files (elevation .adf and imagery jp2) downloaded from USGS into grass with the sole purpose of stitching them and exporting tiff files to represent elevation and orthimagery for use in a 3D software.
I just dowloaded and installed grass7.4.1

Help is highly appreciated as I have been trying to find anything online with no luck.

R

On 03/10/18 22:29, Rasha Shalaby wrote:

I am certain is is a grass solution. I am able to load one .adf and export as png (which i can convert to tif).
The main issue I am facing is being able to stitch multiple .adf (tiles) into one and lining it up with the orthoimagery.

r.in.gdal to import the data
g.region rast=orthoimagery to set the computational region to correspond to the orthoimage (supposing this is the area you want to stitch your elevation data in)
r.patch in=elevation1,elevation2,etc to stitch together your elevation data
r.out.gdal to export to tiff.

Moritz

Any help is much appreciated

tx
r

On Tue, Oct 2, 2018 at 11:02 AM Rasha Shalaby <rasha.fx@gmail.com <mailto:rasha.fx@gmail.com>> wrote:

    Hi

    Can someone please direct me to a tutorial/workflow on how to load
    dem files (elevation .adf and imagery jp2) downloaded from USGS
    into grass with the sole purpose of stitching them and exporting
    tiff files to represent elevation and orthimagery for use in a 3D
    software.
    I just dowloaded and installed grass7.4.1

    Help is highly appreciated as I have been trying to find anything
    online with no luck.

    R

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Thu, Oct 4, 2018 at 11:29 AM Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 03/10/18 22:29, Rasha Shalaby wrote:
> I am certain is is a grass solution. I am able to load one .adf and
> export as png (which i can convert to tif).
> The main issue I am facing is being able to stitch multiple .adf (tiles)
> into one and lining it up with the orthoimagery.

r.in.gdal to import the data
g.region rast=orthoimagery to set the computational region to correspond
to the orthoimage (supposing this is the area you want to stitch your
elevation data in)

... note that you can tell g.region to use multiple input maps, like

g.region raster=ortho1,ortho2,...

r.patch in=elevation1,elevation2,etc to stitch together your elevation data

With GRASS GIS 7.6+ you can use this instead of r.patch:

r.buildvrt - Build a VRT (Virtual Raster) from the list of input raster maps.
https://grass.osgeo.org/grass76/manuals/r.buildvrt.html

It takes a fraction of time and does not duplicate the raster data.

r.out.gdal to export to tiff.

Moritz

best,
markusN