Skip to content

Enable downloading a vectorlayer#528

Merged
martinRenou merged 18 commits intogeojupyter:mainfrom
arjxn-py:export-layer
Mar 13, 2025
Merged

Enable downloading a vectorlayer#528
martinRenou merged 18 commits intogeojupyter:mainfrom
arjxn-py:export-layer

Conversation

@arjxn-py
Copy link
Member

@arjxn-py arjxn-py commented Mar 11, 2025

Description

downloadGrojson.mov

Might close #520

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--528.org.readthedocs.build/en/528/
💡 JupyterLite preview: https://jupytergis--528.org.readthedocs.build/en/528/lite

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch arjxn-py/jupytergis/export-layer

@arjxn-py arjxn-py added the enhancement New feature or request label Mar 11, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2025

Integration tests report: appsharing.space

@arjxn-py arjxn-py changed the title [WIP]: Enable converting, exporting and downloading a layer [WIP]: Enable converting, exporting and downloading a vectorlayer Mar 11, 2025
@arjxn-py arjxn-py marked this pull request as ready for review March 11, 2025 13:06
@arjxn-py arjxn-py requested a review from martinRenou March 11, 2025 13:06
@arjxn-py arjxn-py changed the title [WIP]: Enable converting, exporting and downloading a vectorlayer Enable converting, exporting and downloading a vectorlayer Mar 11, 2025
@arjxn-py arjxn-py changed the title Enable converting, exporting and downloading a vectorlayer Enable converting downloading a vectorlayer Mar 11, 2025
@arjxn-py
Copy link
Member Author

Coming from #532, i've also removed download as geotiff for now

@arjxn-py arjxn-py requested a review from martinRenou March 13, 2025 11:46
@arjxn-py arjxn-py changed the title Enable converting downloading a vectorlayer Enable downloading a vectorlayer Mar 13, 2025
Comment on lines -305 to -307
if (Object.keys(selectedLayers).length > 1) {
return false;
}
Copy link
Member

Choose a reason for hiding this comment

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

We don't have this logic anymore. How about putting this logic in getSelectedLayer and maybe rename getSelectedLayer into getSingleSelectedLayer (or something else that makes more sense if you have ideas)?

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 9a1c11b into geojupyter:main Mar 13, 2025
15 checks passed
HaudinFlorence pushed a commit to HaudinFlorence/jupytergis that referenced this pull request Jan 28, 2026
* Enable exporting and downloading a layer

* make geotiff work

* let user decide the name

* just geojson and tif for now

* schema for exportlayer

* cleanup and refactoring

* Major Refactor

* reuse methods in buffer

* lint

* rename formdialog

* more refactoring

* rename method

* check sourcetype

* lint

* one more check

* Remove download as geotiff for now

* rename getselectedlayer and add check for selected layer
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 "Export to Shapefile/GeoJSON/etc." Option in Layers Panel

2 participants