Giter Site home page Giter Site logo

Comments (14)

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024 1

Hi,

Thank you very much for reporting this issue. I'm currently travelling so it might be a while before I can get to this. I'll see if I can find time later tonight - but no promises. In the mean time, you might be able to hopefully download the WDPA data manually and import the data from the zip file using wdpa_read() -- as long as Protected Planet hasn't updated the zip file format too.

from wdpar.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024 1

I'm having trouble accessing some parts of the protected planet website using a web browser. For example, when I try viewing the web page for the protected areas of Australia (i.e., https://protectedplanet.net/en/country/AUS), I see the error below.

image

So, my guess is that there's some issue with protected planet and this, in turn, is causing an issue for wdpar. So hopefullly, once protected planet fix the website, this will resolve the issue for wdpar? If anyone has any other ideas, I'd be happy to explore them? But it seems like we might have to wait for protected planet to fix things on their end.

from wdpar.

fBedecarrats avatar fBedecarrats commented on June 3, 2024 1

Hi, Jeffrey. I can manually download the data of Australia on https://www.protectedplanet.net/country/AUS, but it is only the latest month. Now I want to download the global data for December 2019, but I don't know how to operate it.

Hi @Aisling-Wang, this question is not related to the wdpar package and you should ask it to the UNEP-WCMC peopole who produce the WDPA data.
Anyway, you can download the data you are looking for here: https://pp-import-production.s3-eu-west-1.amazonaws.com/WDPA_Dec2019_Public.zip

from wdpar.

fBedecarrats avatar fBedecarrats commented on June 3, 2024

Hello, same problem here. Does it correspond to a modification from the source portal?

from wdpar.

Aisling-Wang avatar Aisling-Wang commented on June 3, 2024

Hi, Jeffrey. I can manually download the data of Australia on https://www.protectedplanet.net/country/AUS, but it is only the latest month. Now I want to download the global data for December 2019, but I don't know how to operate it.

from wdpar.

Aisling-Wang avatar Aisling-Wang commented on June 3, 2024

Thanks

Hi, Jeffrey. I can manually download the data of Australia on https://www.protectedplanet.net/country/AUS, but it is only the latest month. Now I want to download the global data for December 2019, but I don't know how to operate it.

Hi @Aisling-Wang, this question is not related to the wdpar package and you should ask it to the UNEP-WCMC peopole who produce the WDPA data. Anyway, you can download the data you are looking for here: https://pp-import-production.s3-eu-west-1.amazonaws.com/WDPA_Dec2019_Public.zip

Thanks.

from wdpar.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Just to give an update, I think I've found a fix to this problem. I'll try and push a branch with the fix later today so you can see if it works on your computers?

from wdpar.

fBedecarrats avatar fBedecarrats commented on June 3, 2024

Hi, thanks!!! I'll need a couple of days to test. I'm currently traveling.

from wdpar.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

I think I've got it working now, could you please try installing the fixes branch and see if it works for you? This can be done using the following code:

remotes::install_github("prioritizr/wdpar@fixes")

from wdpar.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Hi @fBedecarrats and @Aisling-Wang, I just wanted to follow up and see if the updates in the fixes branch have fixed the wdpa_fetch() function for you?

from wdpar.

fBedecarrats avatar fBedecarrats commented on June 3, 2024

Hi @jeffreyhanson, sorry for the delay. I'm still doing field work ik Senegal. I hope to be able to do it tomorrow.

from wdpar.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

No worries @fBedecarrats! Thanks so much for the quick repsonse. I just wanted to make sure my previous message didn't get lost. Hope the field work goes well!

from wdpar.

fBedecarrats avatar fBedecarrats commented on June 3, 2024

Hi @jeffreyhanson, Just did the tests and it seems that the fixes work. But what is most weird is that the CRAN version also works now:

# Use CRAN version
install.packages("wdpar")
library(wdpar)
webdriver::install_phantomjs()

lie_raw_data <- wdpa_fetch("Liechtenstein", wait = TRUE)
# [100%] Downloaded 11466840 bytes...
nrow(lie_raw_data)
# [1] 45

# Test fix branch
detach("package:wdpar", unload = TRUE)
remove.packages("wdpar")
remotes::install_github("prioritizr/wdpar@fixes")
library(wdpar)
lie_raw_data <- wdpa_fetch("Liechtenstein", wait = TRUE)
# no download progress message
nrow(lie_raw_data)
# [1] 45

from wdpar.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Brilliant - thanks so much @fBedecarrats!

Yeah, I dunno why the CRAN version is working again. I originally thought the issue with the downloading errors was due to issues with the protected planet website - so maybe they've fixed them now? I dunno. I'll merge the changes in the fix branch, since they seem to be more robust to issues with the protected planet website.

from wdpar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.