[R-sig-Geo] Extracting "lines" from ArcGIS file

Christian Paroissin christian.paroissin at univ-pau.fr
Fri Jan 28 14:03:16 CET 2011


Hello,

I have downloaded an Arcgis file here:
http://services.sandre.eaufrance.fr/data/zonage/Hydrographie2010/arcgis/Bassins/AG/COURS_D_EAU.SHP.zip

I would like to extract informations from these dataset. It gives an  
S4 object but I know nothing about it. Here is the code I wrote:

[code]
object1.shp <- readShapeSpatial("Cours-AG/COURS_D_EAU.shp")
index= which(object1.shp$TOPONYME=="L'Adour")
object1.shp[index,]
[/code]

I would like to extract the 'information' called "lines" but I don't  
known how do it. I find how to extract the 'information' "bbox"
[quote]
object1.shp[index,]@bbox
object1.shp[index,]@lines
[/quote]

Could you help me please?

Do "lines" correspond to the coordinates of the different points  
defining the river ("L'Adour" in my case)?

Thanks in advance,

Ch.

-- 
Christian Paroissin
Maitre de conférences
Université de Pau et des Pays de l'Adour
Laboratoire de Mathématiques et de leurs Applications
IPRA - LMAP
Avenue de l'Université
64013 Pau cedex
Tél : +33 (0)5 59 40 75 69
Web : http://web.univ-pau.fr/~cparoiss/



More information about the R-sig-Geo mailing list