Comments (5)
The first thing I noticed was that the WKT includes some extra commas in tuple 3 and 4:
'geometry = POLYGON((9.33 62.80,9.33 64.20,12.13,64.20,12.13,62.80,9.33 62.80))'
'geometry = POLYGON((9.33 62.80,9.33 64.20,12.13 64.20,12.13 62.80,9.33 62.80))'
A web search in the portal gives 66 hits
https://www.gbif.org/occurrence/search?country=NO&has_coordinate=true&has_geospatial_issue=false&taxon_key=2346633&geometry=POLYGON((9.33%2062.80,%209.33%2064.20,%2012.13%2064.20,%2012.13%2062.80,%209.33%2062.80))
GBIF REST API search gives 66 hits
http://api.gbif.org/v1/occurrence/search?taxon_key=2346633&country=NO&has_coordinate=true&has_geospatial_issue=false&geometry=POLYGON((9.33%2062.80,%209.33%2064.20,%2012.13%2064.20,%2012.13%2062.80,%209.33%2062.80))
Testing with rgbif occ_search() also gives 66 hits
sp_data <- (occ_search (taxonKey = '2346633', hasCoordinate = 'TRUE',
hasGeospatialIssue = 'FALSE',
country = 'NO',
geometry = 'POLYGON((9.33 62.80, 9.33 64.20, 12.13 64.20, 12.13 62.80, 9.33 62.80))',
limit=100))$data
But for some reason using the occ_download() still gives me an error on the GBIF portal side.
sp_downloadKey <- (occ_download ('taxonKey = 2346633', 'hasCoordinate = TRUE',
'hasGeospatialIssue = FALSE',
'country = NO',
'geometry = POLYGON((9.33 62.80,9.33 64.20,12.13 64.20,12.13 62.80,9.33 62.80))',
type = "and"))[1]
I get the request posted to the GBIF portal API, but find this error message:
"Broken download. The download request was unsuccessful. Please try it again or get in touch."
See download URL: https://www.gbif.org/occurrence/download/0002836-171113114016250
from nordic_oikos_2018_r.
See also: https://discuss.ropensci.org/t/rgbif-using-geometry-in-occ-download/395
from nordic_oikos_2018_r.
When I click "RERUN QUERY" in the failed download request page, I do get the 66 hits
https://www.gbif.org/occurrence/download/0002836-171113114016250
from nordic_oikos_2018_r.
When I make the same search in R without the geometry attribute, I do get hits (3317 hits)
sp_downloadKey <- (occ_download ('taxonKey = 2346633', 'hasCoordinate = TRUE',
'hasGeospatialIssue = FALSE',
'country = NO',
type = "and"))[1]
https://www.gbif.org/occurrence/download/0002855-171113114016250
from nordic_oikos_2018_r.
Fixed in #2, confirmed and merged by @andersfi
from nordic_oikos_2018_r.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nordic_oikos_2018_r.