Guest User

Untitled

a guest
Mar 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. library(c(XML,plyr))
  2.  
  3. fileurl <- "http://ovc.catastro.meh.es/INSPIRE/wfsCP.aspx?service=wfs&request=getfeature&Typenames=cp.cadastralparcel&SRSname=EPSG::25830&bbox=233673,4015968,233761,4016008"
  4. doc <- xmlParse(fileurl,useInternalNodes = TRUE) ### xmlParse()- is to parse the xml content, the parsed content is stored into doc
  5. xL <- xmlToList(doc) ###is to convert xml doc into List
  6.  
  7. data <- ldply(xL, data.frame)
  8. head(data)
Add Comment
Please, Sign In to add comment