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

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


Hi,

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 ?
Coordinates:
         min       max
r1  2.560776  6.403847
r2 49.493613 51.505419

Thansk,
B. Coulmont

-- 
Baptiste   Coulmont
http://coulmont.com/blog



More information about the R-sig-Geo mailing list