Skip to content

Add Path Validation for ShapefileSource and ImageSource.#362

Merged
martinRenou merged 6 commits intogeojupyter:mainfrom
Meriem-BenIsmail:path-validation
Jan 20, 2025
Merged

Add Path Validation for ShapefileSource and ImageSource.#362
martinRenou merged 6 commits intogeojupyter:mainfrom
Meriem-BenIsmail:path-validation

Conversation

@Meriem-BenIsmail
Copy link
Member

@Meriem-BenIsmail Meriem-BenIsmail commented Jan 20, 2025

Description

Resolves #357.

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint

📚 Documentation preview: https://jupytergis--362.org.readthedocs.build/en/362/
💡 JupyterLite preview: https://jupytergis--362.org.readthedocs.build/en/362/lite

@Meriem-BenIsmail Meriem-BenIsmail added the enhancement New feature or request label Jan 20, 2025
@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch Meriem-BenIsmail/jupytergis/path-validation

@github-actions
Copy link
Contributor

github-actions bot commented Jan 20, 2025

Integration tests report: appsharing.space

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Neat! I have a tiny question

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks!!

@martinRenou martinRenou merged commit e0612f5 into geojupyter:main Jan 20, 2025
14 checks passed
arjxn-py added a commit to arjxn-py/jupytergis that referenced this pull request Jan 21, 2025
martinRenou added a commit that referenced this pull request Jan 23, 2025
* Caching extended for imageSource

* Make caching work for shapefiles

* Works for geojson too

* use abstracted methods for geotiff too

* lint

* merge image path validation logic from #362

* don't use caching logic on image

* lint

* refactor to straightup cache geojson

* Remove wrappers, cache any file type

* Update packages/base/src/tools.ts

Co-authored-by: martinRenou <martin.renou@gmail.com>

* lint

---------

Co-authored-by: martinRenou <martin.renou@gmail.com>
HaudinFlorence pushed a commit to HaudinFlorence/jupytergis that referenced this pull request Jan 28, 2026
…ter#362)

* path validation for shapefile and image.

* make geojson inherit from pathbasedform

* lint

* lint check

* add sourceType property to BaseForm.
HaudinFlorence pushed a commit to HaudinFlorence/jupytergis that referenced this pull request Jan 28, 2026
* Caching extended for imageSource

* Make caching work for shapefiles

* Works for geojson too

* use abstracted methods for geotiff too

* lint

* merge image path validation logic from geojupyter#362

* don't use caching logic on image

* lint

* refactor to straightup cache geojson

* Remove wrappers, cache any file type

* Update packages/base/src/tools.ts

Co-authored-by: martinRenou <martin.renou@gmail.com>

* lint

---------

Co-authored-by: martinRenou <martin.renou@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add validation for file selection field for ShapeFile and ImageSource

2 participants