Features Disappear on 'Apply' When Creating Training Samples in geemap Tutorial (nb 67) #1816
-
I'm trying to follow this tutorial to create training samples: https://geemap.org/notebooks/67_training_samples/ I'm following the very same steps, but when I click "apply", the current features just disappear. This makes impossible to draw several features, of different classes, and covert then to a single feature collection as suggested by the video. I wonder if one of the following is happening:
Expected behavior: Note 1: It is hard to me explain the issue because I'm not an expert on recording videos or gifs, but I gave it a try: https://drive.google.com/file/d/1GJq-FVKKqBjF46hEgPgf03dWPeO9CGXh/view?usp=sharing Note 2: I could save the features class by class (i.e. all the polygon for water, then all the houses, etc.), using the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I saw a comment in the video description after opening this discussion. It is a bit old tho, so I guess it is worth it the shot:
|
Beta Was this translation helpful? Give feedback.
-
The draw control has some major changes recently. That might have caused this bug. For the time being, install an older version of geemap, such as |
Beta Was this translation helpful? Give feedback.
-
I tested a few versions on google Collab...
None of them worked. So there's also the hypothesis that this problem is coming from some dependency (probably the ipyleaflet). I decided to read the Line 1896 in 7be18b3 I don't see where or when the drawn polygons are being saved before calling the Alternatively, I wonder if there's already a feature to allow me to first draw multiple polygons and then modify its properties, that would work even better for collecting training samples. it is like "draw the polygons first, label them later" |
Beta Was this translation helpful? Give feedback.
-
Hello Prof, any updates on this one? I will be entering vacations by the end of this month so I would be willing to help solving the bug if I am able to. Also, I wonder whether we should convert this discussion into an issue. |
Beta Was this translation helpful? Give feedback.
The draw control has some major changes recently. That might have caused this bug. For the time being, install an older version of geemap, such as
pip install geemap==0.25.0
. That should still work. I will look into this bug when I have time.