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

♻️ Let PyogrioReader return geodataframe only instead of tuple #33

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented Jul 25, 2022

Simplify downstream slicing tasks on an geopandas.GeoDataFrame by returning a single geodataframe per iteration instead of a tuple of (filepath, geodataframe). The source filename(s) can be obtained by looping over the original input DataPipe iterator.

Relates to #31 and handles bullet point in #32 (comment). Also xref similar PR at #24.

@weiji14 weiji14 added the feature New feature or request label Jul 25, 2022
@weiji14 weiji14 added this to the 0.3.0 milestone Jul 25, 2022
@weiji14 weiji14 self-assigned this Jul 25, 2022
Simplify downstream slicing tasks on an geopandas.GeoDataFrame by returning a single geodataframe per iteration instead of a tuple of (filepath, geodataframe). The source filename(s) can be obtained by looping over the original input DataPipe iterator.
@weiji14 weiji14 merged commit 71e886d into main Jul 25, 2022
@weiji14 weiji14 deleted the tuple_to_geodataframe branch July 25, 2022 04:11
weiji14 added a commit that referenced this pull request Sep 7, 2022
Forgot to edit the unit test's docstring. Patches #33.
weiji14 added a commit that referenced this pull request Sep 7, 2022
Forgot to edit the unit test's docstring. Patches #33.
weiji14 added a commit that referenced this pull request Sep 7, 2022
Just a random collection of mostly documentation-related patches. Patches type-hints in #52, isort imports in #35, mention functional name of IterDataPipe in walkthroughs #8 and #20, and remove mention of returned tuple to patch #33.

* 🏷️ Add specific type hints for mask_datapipe in geopandas.py

Should be either an xarray.DataArray or xarray.Dataset.

* 🚨 Sort spatialpandas imports in datashader.py

Ran isort to sort spatialpandas.geometry imports alphabetically. Also intersphinx linked the `.crs` attribute to geopandas.GeoDataFrame.crs.

* 💬 Mention functional name of IterDataPipe in walkthroughs

So people don't get confused on why the class-form like `Collator` is mentioned but `.collate` was used instead.

* 📝 Remove mention of tuple being returned in test_pyogrio_reader

Forgot to edit the unit test's docstring. Patches #33.

* 🍻 It's GeoPackage and GeoDataFrame, not GeoTIFF and DataArray

Need to be more careful when copying and pasting stuff.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant