[R-sig-Geo] Import a .svg map?

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Fri Jun 27 15:42:46 CEST 2014

SVG is a general vector graphics format, which uses XML for its
structure. The coordinate numbers in the SVG could be anything now,
perhaps scaled from 0 to 1 on each axis or something. It might take
some custom processing to recover the SVG into a proper mappable

And if by "their perspective is horible" you mean their projection,
then you'll need the projection specification they are using in order
to back-project that.

What's the nature of the output? Is it values in polygon areas
(shapefile features)? Can you not get Darcy to just output the values
to a text/csv/spreadsheet file, and then link them back to the
shapefile in R (it might be in the same order)?

Any chance you can supply an exemplar SVG on a sharing site somewhere
(dont post it to the group)?


On Fri, Jun 27, 2014 at 11:30 AM, Gilles Benjamin Leduc <gbl1 at hi.is> wrote:
> Hi,
> For making a part of my work, I needed to use another software named Darcy, I fed it with .shp files ans R calculated values, but it gave me back some map with .svg format.
> As their perspective is horible, I need to get them back in R and make a correct graph… Any idea of the way for doing that? I cannot find a way of loading svg, or convert it to shp…
> Best Regards
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

More information about the R-sig-Geo mailing list