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

Close and reopen memfile dataset before WarpedVRT #165

Merged
merged 3 commits into from
Sep 28, 2020

Conversation

sgillies
Copy link
Contributor

@sgillies sgillies commented Sep 26, 2020

Depending on format, datasets that have been written need to be closed before they are complete, so this is safer. A future version of rasterio will require that datasets passed to WarpedVRT be opened in read-only mode. Also, using numpy.moveaxis so that we only call mraster.write once.

Much safer and a future version of rasterio will require that datasets passed to WarpedVRT be opened in read-only mode. Also, using numpy.moveaxis so that we only call mraster.write once.
@sgillies
Copy link
Contributor Author

The build errors look unrelated 🤷

@jorisvandenbossche
Copy link
Member

Thanks a lot!

The build errors look unrelated shrug

Indeed that is being fixed in #164

@jorisvandenbossche jorisvandenbossche merged commit 83b0f68 into geopandas:master Sep 28, 2020
jpn-- added a commit to jpn--/contextily that referenced this pull request Jan 8, 2021
…iles

* commit '3c26d5a16a094e8d5ae05f8e5a41f05278816daf':
  DOC: update for latest pydata-sphinx-theme (fix sidebar + use CSS variables) (geopandas#168)
  RLS: v1.0.1
  Fix resetting of extent with local files (geopandas#155) (geopandas#156)
  Add random user ID for Nominatim and allow arbitrary geocoder (geopandas#164)
  Close and reopen memfile dataset before WarpedVRT (geopandas#165)
  Fix use of rasterio MemoryFile (geopandas#163)
  DOC: Use Cape Town consistently in description and variable names (geopandas#154)
  Add matplotlib Framework classifier (geopandas#152)
  Require Python 3.6 as minimum version (geopandas#150)
  Add earthengine to docker for binder
  Example interfacing GEE with contextily (geopandas#147)
  DOC: add notebook about working with local files (geopandas#139)

# Conflicts:
#	tests/test_ctx.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants