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

SpOcc not respecting extent argument properly. #422

Open
timcdlucas opened this issue May 15, 2018 · 2 comments
Open

SpOcc not respecting extent argument properly. #422

timcdlucas opened this issue May 15, 2018 · 2 comments
Assignees

Comments

@timcdlucas
Copy link
Contributor

w_m <- workflow(Chain(SpOcc(species = 'Anopheles arabiensis', 
                           extent =   c(33.1, 37.8, -20, -17.2)),
                     SpOcc(species = 'Anopheles funestus', 
                           extent =   c(33.1, 37.8, -20, -17.2)),
                     SpOcc(species = 'Anopheles gambiae', 
                           extent =   c(33.1, 37.8, -20, -17.2))),
               Bioclim(extent = c(33.1, 37.8, -25.5, -17.2), resolution = 2.5, layers = c(1, 4, 12, 15)),
               Background(n = 100),
               LogisticRegression,
               Chain(PrintOccurrenceMap, 
                     PrintMap, 
                     PerformanceMeasures))

# Change as necessary
# load("/tmp/RtmpeNGXf4/file6789c23e5fb.rdata")

output$occurrence.output

Gives points all over the place.

[[1]]
    longitude  latitude value     type fold
1    47.11667 -18.31667     1 presence    1
2    23.41667 -20.00000     1 presence    1
3    25.15000 -17.81670     1 presence    1
4    15.80000 -17.78333     1 presence    1

I'll look into it a bit.

@timcdlucas
Copy link
Contributor Author

OK, the error is in spocc somewhere (or in the gbif api) so I'm asking there.

@timcdlucas
Copy link
Contributor Author

ropensci/spocc#187 (comment)

We (I) need to edit SpOcc so that it uses WKT.

@timcdlucas timcdlucas self-assigned this Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant