Skip to content
Prev 18087 / 29559 Next

Memory limits in R with shapefiles

gdalwarp is not for shapefiles

Dominic: at the command line with GDAL installed you can use *ogr2ogr*
to subset and otherwise manipulate shapefiles and that may be your
best route.  http://www.gdal.org/ogr_utilities.html

But, what is the size of the component files? Sometimes it's the .shp
that is huge, other times the .dbf and not necessarily both of them
due to the relative storage required for geometry vs. attributes.

That might give you more options, since you can read (and write) .dbf
files for shapefiles with the foreign package. You can also hand-craft
a VRT file that defines a subset of the geometry and/or attributes,
though that can be tricky to get right.
http://www.gdal.org/ogr/drv_vrt.html

Cheers, Mike.

On Mon, Apr 22, 2013 at 11:00 PM, Thiago V. dos Santos
<thi_veloso at yahoo.com.br> wrote: