Dear all, I'm in need of a suitable class for representing individual line segments with multiple attributes. It's for the public interface to a line source dispersion modeling package (on R-forge as "Rcaline"), so I'd like it to be moderately future-proof if possible. The spatstat2::psp class is closest to what I'm looking for, except it doesn't exist (yet?). :-) Can you offer advice? Should I build off of sp::SpatialLinesDataFrame? If so, should I rely on subclassing, delegation, or some other design pattern? Most of my experience in programming has been in Python, so I'm less familiar with best practices/idioms in R. (I'm learning about S4 and reference classes, but slowly.) Or maybe I need a SpatialLineDataFrame (without the "s"!)? Building on the considerable work of others in 'sp' and 'spatstat' has been of great use so far. I thank you for your time & attention, and I apologize if this has come up before. I have not been able to find anything and am new to r-sig-geo. Very best, David -- David Holstius PhD Student in Environmental Health Sciences UC Berkeley School of Public Health
best data model for line segments with multiple attributes?
2 messages · David Holstius, Edzer Pebesma
On 02/27/2011 01:56 AM, David Holstius wrote:
Or maybe I need a SpatialLineDataFrame (without the "s"!)?
If it is convenient for your problem, I would start with the SpatialLinesDataFrame, as it is there right now and allows you to do several things that might be useful to you or others. Then, continue working on another, possibly derived, class, when the need arises.
Edzer Pebesma Institute for Geoinformatics (ifgi), University of M?nster Weseler Stra?e 253, 48151 M?nster, Germany. Phone: +49 251 8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de http://www.52north.org/geostatistics e.pebesma at wwu.de