Skip to content
Prev 6418 / 29559 Next

decimate points from a Lidar file

On Tue, 8 Sep 2009, Dylan Beaudette wrote:

            
Right, it is not possible to read 350 M points into R and do anything with 
them. I would actually suggest using a database as a store directly, 
possibly with some spatial support, but not necessarily. If the data were, 
say, in a database, subsets could be read in by selecting, or sample 
inclusion fields could be added to a table for samples, giving the FID 
values to be chosen. I feel that this would give the flexibility needed. 
Both SQLite and PostgreSQL are supported by OGR, so may also be accessed 
from rgdal functions if the appropriate drivers are present, but dumping 
to CSV files for smaller samples ought to be OK. If you are on Windows, 
see OSGeo4W or FWTools for ideas. The advantage of a database over a flat 
text file is that selection is much easier.

You could also look at the SQLiteMap package, which uses an alternative 
set of spatial extensions for SQLite. Import the data outside R, then 
select from inside (untried).

Hope this helps,

Roger