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

more notebook fixes #1752

Merged
merged 4 commits into from Oct 4, 2023
Merged

more notebook fixes #1752

merged 4 commits into from Oct 4, 2023

Conversation

biplovbhandari
Copy link
Contributor

use consistent quotations sign
vector source fixes for 58_add_vector.ipynb

Comment on lines 133 to 139
"!mkdir countries_shp\n",
"!cd countries_shp && \\\n",
"wget https://raw.githubusercontent.com/gee-community/geemap/master/examples/data/countries.shp && \\\n",
"wget https://raw.githubusercontent.com/gee-community/geemap/master/examples/data/countries.cpg && \\\n",
"wget https://raw.githubusercontent.com/gee-community/geemap/master/examples/data/countries.dbf && \\\n",
"wget https://raw.githubusercontent.com/gee-community/geemap/master/examples/data/countries.prj && \\\n",
"wget https://raw.githubusercontent.com/gee-community/geemap/master/examples/data/countries.shx"
Copy link
Member

Choose a reason for hiding this comment

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

Using wget is discouraged as it only supports Linux/Mac. Windows users won't be able to use this.

I suggest changing to this:

url = "https://raw.githubusercontent.com/gee-community/geemap/master/examples/data/countries.zip"
geemap.download_file(url)

Copy link
Member

Choose a reason for hiding this comment

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

The download_file() function will download the zip file and unzip it automatically.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for correcting that!

@giswqs giswqs merged commit 1537105 into gee-community:master Oct 4, 2023
13 checks passed
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.

None yet

2 participants