ropensci-archive / rwdpa

:no_entry: ARCHIVED :no_entry: World Database of Protected Areas Client
Other
6 stars 1 forks source link

How to figure out urls for shp files #1

Closed sckott closed 7 years ago

sckott commented 8 years ago

@wardappeltans @pieterprovoost any thoughts on how to figure out shp file URLs for protected planet, e.g, for this one http://www.protectedplanet.net/country/MX In that one they have a URL of http://www.protectedplanet.net/downloads/WDPA_Nov2015_MEX?type=shapefile which has a date in it, which isn't even the current month, so not sure when that changes, and the country code in the URL is 3 letters, not 2.

And that's just countries.

The big metadata csv file you get on the landing page doesn't appear to have enough info to figure out how to construct URLs. is there any metadata API anywhere?

pieterprovoost commented 8 years ago

@sckott There seems to be an undocumented API which provides WKT:

http://www.protectedplanet.net/api2/sites/40597 http://www.protectedplanet.net/api2/sites/search_by_point/51/2.5?type=official http://www.protectedplanet.net/api2/sites?page=2

Not sure about shapefiles.

sckott commented 8 years ago

@pieterprovoost thanks! didn't see that. that should help

sckott commented 7 years ago

i think URLS for shp/csv/kml is okay,

that API is no gone but replaced with another that needs auth, closing this for now