Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] r.import with e flag behaves unexpected, when no reprojection required #3252

Open
linakrisztian opened this issue Nov 20, 2023 · 0 comments · May be fixed by #4947
Open

[Bug] r.import with e flag behaves unexpected, when no reprojection required #3252

linakrisztian opened this issue Nov 20, 2023 · 0 comments · May be fixed by #4947
Labels
bug Something isn't working good first issue Good for newcomers Python Related code is in Python

Comments

@linakrisztian
Copy link

Description of bug
When using r.import with -e flag the estimated resolution should be obtained, without importing the raster (or rather only temporary).
When applying this for a raster, where no reprojection is required, no estimated resolution is calculated/printed and the temporary import map is kept.

To Reproduce
Steps to reproduce the behavior:

  1. Start a GRASS session within NC SPM sample location (e.g. grass ~/grassdata/nc_spm_08/bug_rimport_eflag -c)
  2. Ensure empty mapset: g.list raster
  3. Estimate resolution only, for data in same projection: r.import input=https://github.com/OSGeo/grass/raw/main/raster/r.in.gdal/testsuite/data/elevation.tif -e
  4. Check, if new raster map in mapset: g.list raster
  5. Bug: See raster maprimport_tmp within mapset + missing message for estimated resolution

Expected behavior
No raster map imported or rather cleaned up in the end + a clear message of estimated/read resolution or a message, that no estimated resolution is/could be calculated.

System description:

  • Operating System: Linux Mint 21.2 Cinnamon (Cinnamon-Version: 5.8.4)
  • GRASS GIS version: GRASS 8.4.0dev (2023)
@linakrisztian linakrisztian added the bug Something isn't working label Nov 20, 2023
@petrasovaa petrasovaa added good first issue Good for newcomers Python Related code is in Python labels Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Python Related code is in Python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants