Skip to content

Conversation

@Shweta200126
Copy link
Contributor

feature['id'] doesn't work for ids of countries now, the data has been changed for it in data/countries.geojson.

It works with the given change did here i.e. feature['properties']['ISO_A2'] or we can use feature['properties']['ISO_A3'], both gives us the id for the country.

Before:
image

After:
https://watch.screencastify.com/v/ACkAlAVTpP4ZUQ2R0A7F

feature['id'] doesn't work for ids of countries now, the data has been changed for it. It works with the given change I did.
@giswqs
Copy link
Member

giswqs commented Sep 22, 2021

Good catch. Could you also update the notebook under the docs folder?
https://github.com/giswqs/geemap/blob/master/docs/notebooks/07_geojson.ipynb

@Shweta200126
Copy link
Contributor Author

Good catch. Could you also update the notebook under the docs folder?
https://github.com/giswqs/geemap/blob/master/docs/notebooks/07_geojson.ipynb

Sure!

Shweta200126 added a commit to Shweta200126/geemap that referenced this pull request Sep 23, 2021
While doing the follow up to the original pull request, I realised that I didn't make the right changes here. 
This is the correct change to that and checked as well.
@giswqs giswqs closed this in #687 Sep 23, 2021
giswqs added a commit that referenced this pull request Sep 23, 2021
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

Successfully merging this pull request may close these issues.

2 participants