r-spatial / rspatial_spark

This is the repo that sparked https://github.com/r-spatial
36 stars 1 forks source link

Truly 3D spatial #6

Open alex-trueman opened 7 years ago

alex-trueman commented 7 years ago

Mostly, spatial in R refers to projections on a 3D surface at best. Is there any scope in this discussion for true 3D solid Earth type spatial modelling, statistics, and analysis?

mdsumner commented 7 years ago

Do you mean solid as in tetrahedral or similar volume primitives, or surfaces that close around a volume? There's no direct support in sf, but some of the more exotic types come close. Can you be more specific? I think this is worth deeper discussion

mdsumner commented 7 years ago

Also, fwiw I think there's room here to talk about anything related to maps, it's very timely to be discussing the definition of spatial in R and relationship its relationships with dozens of frameworks used in R from raw data to publishing and everything in between.

I welcome any aspect you'd like to discuss!

mdsumner commented 7 years ago

I put some actual examples up:

http://rpubs.com/cyclemumner/rangl-poly-topo-plotly

http://rpubs.com/cyclemumner/raster-quads-to-triangles

http://rpubs.com/cyclemumner/rangl-plotly

These are rough, it's part of tools I'm actively working on, but still figuring out the best way to arrange them.

So the answer is: YES WE CAN. But what "Truly 3D" is means many different things. For you it might mean "XYZ" support in simple features and in that case things are already well supported in the sf package already, though probably not exercised by much testing yet.

It might mean LiDAR so check out lidR and rlas on CRAN.

alex-trueman commented 6 years ago

Maybe I am talking about methods on objects more than objects themselves. I use wireframes a lot to add categorical values to regular 3D grids or irregular points defined by XYZ. A wireframe being a solid (enclosed) or 3D planar mesh/tesselation. So, a wireframe (or whatever it is called) could be a useful feature type and then some methods to use wireframes on other objects such as grids/points. I only work with cartesian XYZ coordinates but others may require projection support.

Sorry, part of the issue is I don't know the terminology used by others outside my field.