[R-sig-Geo] How to crop a shapefile ?

Baptiste Coulmont coulmont at gmail.com
Thu Dec 17 11:07:14 CET 2009


I'm working with R and various shapefiles created by the OpenStreetMap
project. Those shapefiles (the roads in particular) are quite big.

How can I crop (or "trim", or "prune" those objects -- once in a
SpatialLineDataFrame -- if I need to work not on a national level but
on a municipal level ?

Is it possible to create a subset of a smaller zone ?
         min       max
r1  2.560776  6.403847
r2 49.493613 51.505419

B. Coulmont

Baptiste   Coulmont

More information about the R-sig-Geo mailing list