-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
get the coordinates of a user-drawn polygon #34
Comments
You can use |
Perfect ! I'll do it.
Thanks.
Em dom., 13 de jun. de 2021 às 11:07, Qiusheng Wu ***@***.***>
escreveu:
… You can use Map.user_roi and Map.user_rois to return the last drawn shape
and all drawn shapes, respectively.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#34 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK42FDZR3JJBX5PPGPPLV2DTSS3SFANCNFSM46TY4JZQ>
.
--
Prof. Andre L. Belem (Dr. rer. nat.)
Observatório Oceanográfico (http://www.observatoriooceanografico.uff.br)
ORCID: https://orcid.org/0000-0002-8865-6180
ResearchGate: https://www.researchgate.net/profile/Andre_Belem
Linkedin: https://www.linkedin.com/in/andre-l-belem e
https://www.linkedin.com/showcase/agronautas
Departamento de Engenharia Agrícola e Meio Ambiente - Escola de Engenharia
Universidade Federal Fluminense
Rua Passo da Pátria, 156 bloco E sl 300
Campus da Praia Vermelha - São Domingos
24210-240 Niterói,RJ / Brasil
Tel: 55-21-2629-5392
|
Sorry, but are you sure it is there ?
The very simple code:
import leafmap
m = leafmap.Map(center=(-23,-43),zoom=12)
m
(then drawing a simple polygon), give me
AttributeError: 'Map' object has no attribute 'user_roi'
Em dom., 13 de jun. de 2021 às 11:20, Andre Luiz Belem ***@***.***>
escreveu:
… Perfect ! I'll do it.
Thanks.
Em dom., 13 de jun. de 2021 às 11:07, Qiusheng Wu <
***@***.***> escreveu:
> You can use Map.user_roi and Map.user_rois to return the last drawn
> shape and all drawn shapes, respectively.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#34 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AK42FDZR3JJBX5PPGPPLV2DTSS3SFANCNFSM46TY4JZQ>
> .
>
--
Prof. Andre L. Belem (Dr. rer. nat.)
Observatório Oceanográfico (http://www.observatoriooceanografico.uff.br)
ORCID: https://orcid.org/0000-0002-8865-6180
ResearchGate: https://www.researchgate.net/profile/Andre_Belem
Linkedin: https://www.linkedin.com/in/andre-l-belem e
https://www.linkedin.com/showcase/agronautas
Departamento de Engenharia Agrícola e Meio Ambiente - Escola de Engenharia
Universidade Federal Fluminense
Rua Passo da Pátria, 156 bloco E sl 300
Campus da Praia Vermelha - São Domingos
24210-240 Niterói,RJ / Brasil
Tel: 55-21-2629-5392
--
Prof. Andre L. Belem (Dr. rer. nat.)
Observatório Oceanográfico (http://www.observatoriooceanografico.uff.br)
ORCID: https://orcid.org/0000-0002-8865-6180
ResearchGate: https://www.researchgate.net/profile/Andre_Belem
Linkedin: https://www.linkedin.com/in/andre-l-belem e
https://www.linkedin.com/showcase/agronautas
Departamento de Engenharia Agrícola e Meio Ambiente - Escola de Engenharia
Universidade Federal Fluminense
Rua Passo da Pátria, 156 bloco E sl 300
Campus da Praia Vermelha - São Domingos
24210-240 Niterói,RJ / Brasil
Tel: 55-21-2629-5392
|
Are you using Colab? It is for ipyleaflet only. |
Yes, I am! ok...so, using colab it is not possible.
Not a problem at all but I was producing some notebooks for my students.
But thanks anyway
Em dom., 13 de jun. de 2021 às 12:07, Qiusheng Wu ***@***.***>
escreveu:
… Are you using Colab? It is for ipyleaflet only.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#34 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK42FD4MONOIHQ32WSGOSA3TSTCR5ANCNFSM46TY4JZQ>
.
--
Prof. Andre L. Belem (Dr. rer. nat.)
Observatório Oceanográfico (http://www.observatoriooceanografico.uff.br)
ORCID: https://orcid.org/0000-0002-8865-6180
ResearchGate: https://www.researchgate.net/profile/Andre_Belem
Linkedin: https://www.linkedin.com/in/andre-l-belem e
https://www.linkedin.com/showcase/agronautas
Departamento de Engenharia Agrícola e Meio Ambiente - Escola de Engenharia
Universidade Federal Fluminense
Rua Passo da Pátria, 156 bloco E sl 300
Campus da Praia Vermelha - São Domingos
24210-240 Niterói,RJ / Brasil
Tel: 55-21-2629-5392
|
Try binder https://gishub.org/leafmap-pangeo |
Thanks! It works like charm !
Em dom., 13 de jun. de 2021 às 12:22, Qiusheng Wu ***@***.***>
escreveu:
… Try binder https://gishub.org/leafmap-pangeo
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#34 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK42FD65Q26VG4YYG2IUAPTTSTELTANCNFSM46TY4JZQ>
.
--
Prof. Andre L. Belem (Dr. rer. nat.)
Observatório Oceanográfico (http://www.observatoriooceanografico.uff.br)
ORCID: https://orcid.org/0000-0002-8865-6180
ResearchGate: https://www.researchgate.net/profile/Andre_Belem
Linkedin: https://www.linkedin.com/in/andre-l-belem e
https://www.linkedin.com/showcase/agronautas
Departamento de Engenharia Agrícola e Meio Ambiente - Escola de Engenharia
Universidade Federal Fluminense
Rua Passo da Pátria, 156 bloco E sl 300
Campus da Praia Vermelha - São Domingos
24210-240 Niterói,RJ / Brasil
Tel: 55-21-2629-5392
|
In Colab, you can use the following line to add an export button to the map, but you can't use
|
First of all, congratulations Dr. Qiusheng for your fantastic work !
I became a 100% geemap user and one of the very useful functions when working with feature exploration (1) is to manually draw a polygon in an area of interest, (2) extract the coordinates with Map.draw_last_feature and then (3) export this polygon as a shapefile or even a featureCollection in the case of ee.
I looked for something similar in the leafmap but I couldn't find it, although it is possible to easily draw the polygon and see its individual points, but it seems to me that there is a lack of a similar routine to manipulate the coordinates extracted from the map.
That would be of great value.
Best wishes
Andre
The text was updated successfully, but these errors were encountered: