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

Save draw features as GeoJSON #170

Closed
giswqs opened this issue Jan 10, 2022 Discussed in #168 · 1 comment
Closed

Save draw features as GeoJSON #170

giswqs opened this issue Jan 10, 2022 Discussed in #168 · 1 comment

Comments

@giswqs
Copy link
Member

giswqs commented Jan 10, 2022

Discussed in #168

Originally posted by egeres January 9, 2022
It's possible to add makers, lines and polygonal areas directly in the notebook's ipywidget. Is it also possible to save these changes from that UI?

If not, in which attribute is it possible to access this information in a leafmap.Map object?

image

giswqs added a commit that referenced this issue Jan 11, 2022
giswqs added a commit that referenced this issue Jan 11, 2022
Added ROI to GeoJSON function #170
@giswqs
Copy link
Member Author

giswqs commented Jan 11, 2022

This feature has been implemented.

  • m.user_roi to retrieve the last draw feature
  • m.user_rois to retrieve all draw features as a list
  • m.save_draw_features(out_file) to save draw features as a GeoJSON file.

@giswqs giswqs closed this as completed Jan 11, 2022
sthagen pushed a commit to sthagen/giswqs-leafmap that referenced this issue Feb 18, 2023
sthagen pushed a commit to sthagen/giswqs-leafmap that referenced this issue Feb 18, 2023
Added ROI to GeoJSON function opengeos#170

Former-commit-id: 01ed6ea
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

No branches or pull requests

1 participant