Skip to content
Prev 4999 / 29559 Next

Reading SVG files into R (as spatial polygons/lines)

Hi,

Perhaps you could try converting to postscript and then importing into  
R with the grImport package? It seems a bit redundant (the postscript  
is going to be converted back into some XML thing) but it might just  
work for simple outlines.

Paul Murrell has a tutorial for this,

http://www.stat.auckland.ac.nz/~paul/R/grImport/import.pdf

(I haven't tried it for SVG pictures)

Hope this helps,

baptiste
On 11 Feb 2009, at 09:22, Hengl, T. wrote:

            
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag