Opened 8 years ago

Closed 8 years ago

#3085 closed defect (fixed)

Batch import with import raster data tool does not recognize projection information

Reported by: pvanbosgeo Owned by: grass-dev@…
Priority: normal Milestone: 7.0.5
Component: Default Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

Importing using the Import raster data (menu: file - import raster data - common formats import) works as advertised when importing a file. However, when trying to import a batch of rasters in a directory, the 'reprojection' screen is shown, with the message that 'projection of following layers do not match with projection of current location (followed by a list of all layers in that directory).

I have had this issue with layers from various data sets, including last data from the Africlim (https://grasswiki.osgeo.org/wiki/Global_datasets#Africlim_maps) data set, which are latlon (wgs84) layers with identical coordinate system header (using gdalinfo).

To reproduce this, one can export the raster layers from the NC sample data set, and then import them all in once using the import raster data tool.

g.region raster=soils
r.out.gdal input=soils output=/home/paulo/Desktop/test/soils.tif format=GTiff
r.out.gdal input=landuse output=/home/paulo/Desktop/test/landuse.tif format=GTiff
r.out.gdal input=geology output=/home/paulo/Desktop/test/geology.tif format=GTiff
r.out.gdal input=elevation output=/home/paulo/Desktop/test/elevation.tif format=GTiff

Now, when importing them, the same warning is shown (see screenshot)

I am running grass 7.3dev r68774 (but I have experienced the same with many previous revisions) on Ubuntu 14.04.

Attachments (1)

screenshot reprojection screen.png (28.6 KB ) - added by pvanbosgeo 8 years ago.
Screenshot Reprojection screen that follows when trying to import layers from directory using the 'import raster data' tool

Download all attachments as: .zip

Change History (4)

by pvanbosgeo, 8 years ago

Screenshot Reprojection screen that follows when trying to import layers from directory using the 'import raster data' tool

comment:1 by mlennert, 8 years ago

What exactly is the issue, here ?

I get the exact same window be it with one file or with a directory. It is just an additional step to make you conscious about the fact that the module will proceed with reprojecting the files. Just select the files you are sure you want to import with reprojection and then proceed.

comment:2 by annakrat, 8 years ago

Should be fixed in r68796.

comment:3 by annakrat, 8 years ago

Resolution: fixed
Status: newclosed

Was backported in r68816. Reopen if needed.

Note: See TracTickets for help on using tickets.