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

r.buildvrt.gdal: Create GDAL VRTs for GDAL linked raster maps #1209

Merged
merged 9 commits into from
Sep 23, 2024

Conversation

ninsbl
Copy link
Member

@ninsbl ninsbl commented Sep 21, 2024

A workaround for OSGeo/grass#4345

@ninsbl ninsbl added new addon PR contains a new addon or issue proposes one Python Related code is in Python labels Sep 21, 2024
Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Thanks for sharing it. I have some minor comments.

src/raster/r.buildvrt.gdal/r.buildvrt.gdal.html Outdated Show resolved Hide resolved
src/raster/r.buildvrt.gdal/r.buildvrt.gdal.py Outdated Show resolved Hide resolved
src/raster/r.buildvrt.gdal/r.buildvrt.gdal.py Outdated Show resolved Hide resolved
src/raster/r.buildvrt.gdal/r.buildvrt.gdal.py Outdated Show resolved Hide resolved
Comment on lines 110 to 113
# Get native GRASS GIS format header
gdal_path = Path(gs.find_file(map_name)["file"].replace("/cell/", "/cellhd/"))
if gdal_path.exists():
return gdal_path
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to handle that, but I did hit this issue in the past. It seems we should have API to make usage of GRASS Driver easier. Perhaps spit a GDAL-compatible path out in r.info output?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind opening an issue for this?

src/raster/r.buildvrt.gdal/r.buildvrt.gdal.py Outdated Show resolved Hide resolved
src/raster/r.buildvrt.gdal/r.buildvrt.gdal.py Outdated Show resolved Hide resolved
@wenzeslaus wenzeslaus changed the title r buildvrt.gdal: Create GDAL VRTs for GDAL linked raster maps r.buildvrt.gdal: Create GDAL VRTs for GDAL linked raster maps Sep 22, 2024
@ninsbl ninsbl requested a review from wenzeslaus September 22, 2024 21:45
@ninsbl
Copy link
Member Author

ninsbl commented Sep 23, 2024

The requested changes should be addressed.

@ninsbl ninsbl merged commit 14d31c9 into OSGeo:grass8 Sep 23, 2024
7 checks passed
@ninsbl ninsbl deleted the r_buildvrt branch September 23, 2024 21:52
@wenzeslaus wenzeslaus removed the request for review from veroandreo September 24, 2024 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new addon PR contains a new addon or issue proposes one Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants