-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(datasets): Replace geopandas.GeoJSONDataset with geopandas.Gener…
…icDataset (#812) * feat(datasets): Add geopandas ParquetDataset Signed-off-by: Harm Matthias Harms <[email protected]> * Add release notes Signed-off-by: Harm Matthias Harms <[email protected]> * Add parquet dataset to docs Signed-off-by: Harm Matthias Harms <[email protected]> * Fix typo in tests Signed-off-by: Harm Matthias Harms <[email protected]> * Fix pylint type Signed-off-by: Harm Matthias Harms <[email protected]> * Discard changes to kedro-datasets/docs/source/api/kedro_datasets.rst Signed-off-by: Harm Matthias Harms <[email protected]> * Discard changes to kedro-datasets/kedro_datasets/geopandas/__init__.py Signed-off-by: Harm Matthias Harms <[email protected]> * Extend geojson dataset to support more file types Signed-off-by: Harm Matthias Harms <[email protected]> * Update RELEASE.md Signed-off-by: Harm Matthias Harms <[email protected]> * Add test for unsupported file format Signed-off-by: Harm Matthias Harms <[email protected]> * Cleanup GeoJSONDataset Signed-off-by: Harm Matthias Harms <[email protected]> * Fix lint Signed-off-by: Harm Matthias Harms <[email protected]> * Replace GeoJSONDataset by GenericDataset Signed-off-by: Harm Matthias Harms <[email protected]> * Update pyproject.toml Signed-off-by: Harm Matthias Harms <[email protected]> * Update RELEASE.md Signed-off-by: Harm Matthias Harms <[email protected]> * Use new default fs args Signed-off-by: Harm Matthias Harms <[email protected]> * Fix pattern in test Signed-off-by: Harm Matthias Harms <[email protected]> * Use fiona for python < 3.11 Signed-off-by: Harm Matthias Harms <[email protected]> * Install fiona dependency for python < 3.11 Signed-off-by: Harm Matthias Harms <[email protected]> * Revert fiona test Signed-off-by: Harm Matthias Harms <[email protected]> * Use fiona because pyogrio doesnt support fsspec Signed-off-by: Harm Matthias Harms <[email protected]> * Format file Signed-off-by: Harm Matthias Harms <[email protected]> * Update kedro-datasets/kedro_datasets/geopandas/__init__.py Co-authored-by: ElenaKhaustova <[email protected]> Signed-off-by: Harm Matthias Harms <[email protected]> Signed-off-by: Harm Matthias Harms <[email protected]> * Improve none file system target error message Signed-off-by: Harm Matthias Harms <[email protected]> * Update RELEASE.md Signed-off-by: Harm Matthias Harms <[email protected]> --------- Signed-off-by: Harm Matthias Harms <[email protected]> Signed-off-by: Harm Matthias Harms <[email protected]> Signed-off-by: Ankita Katiyar <[email protected]> Co-authored-by: ElenaKhaustova <[email protected]> Co-authored-by: L. R. Couto <[email protected]> Co-authored-by: Ankita Katiyar <[email protected]> Co-authored-by: Ankita Katiyar <[email protected]>
- Loading branch information
1 parent
2b1228e
commit f13dd7a
Showing
7 changed files
with
214 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
"""``GeoJSONDataset`` is an ``AbstractVersionedDataset`` to save and load GeoJSON files.""" | ||
"""``GenericDataset`` is an ``AbstractVersionedDataset`` to save and load GeoDataFrames.""" | ||
|
||
from typing import Any | ||
|
||
import lazy_loader as lazy | ||
|
||
# https://github.com/pylint-dev/pylint/issues/4300#issuecomment-1043601901 | ||
GeoJSONDataset: Any | ||
GenericDataset: Any | ||
|
||
__getattr__, __dir__, __all__ = lazy.attach( | ||
__name__, submod_attrs={"geojson_dataset": ["GeoJSONDataset"]} | ||
__name__, submod_attrs={"generic_dataset": ["GenericDataset"]} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.