-
Notifications
You must be signed in to change notification settings - Fork 27
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
Convert objects to sp and any other for easy use of spatial analysis pkgs #1
Comments
@sckott Thoughts on the best approach here? Do we want to add an extra slot for spatial classes? Have a function that just converts the object and returns a spatial object? Something I haven't thought of? |
We do have some conversion in place already, see examples https://github.com/ropensci/spocc/blob/master/R/classes.r#L157-L167 Hmm. Don't know best answer, but IMHO it makes sense to just convert after getting the data back to other classes. I think always just have point data, not polygons or lines. So there are a few relevant I wonder if we can convert data to polygons or lines from points? Is that a common use case? We should ask someone working on Or maybe @karthik or @cboettig have a good sense for what classes we want to be able to convert to from the data gathered in this package? |
Let's wait on the class issue. As Scott says there is more to discuss on this. |
Not a very common use case I'd think. So the basic idea would be to code a function that converts a spocc object to a spatial object. Seems like the low hanging fruit here. |
Hi @spacedman - This package We started doing some simple conversion to a |
On 4 December 2013 23:49, Scott Chamberlain notifications@github.comwrote:
Just having a quick play there, and the example in the docstring doesn't
but I think its because the occ object has an @gbif slot that has the @DaTa str(dat@gbif@data) maybe you've refactored this or I've got an old version of something Anyway... something the code doesn't consider is the coordinate reference proj4string(foo) = CRS("+init=epsg:4326") Now some of your species data might be old, and using a different Barry |
Hey @spacedman Sorry about the error. I have just fixed that and pushed in the most recent commit. There was some refactoring and I forgot to fix those Yes, the data is WGS84, see GBIF's docs here. Thanks for pointing this out, we'll fix right away. Any other advice? |
Nothing else to say at the moment! Glad to be of help. Barry On 5 December 2013 16:14, Scott Chamberlain notifications@github.comwrote:
|
Thanks for the help! |
No description provided.
The text was updated successfully, but these errors were encountered: