Hi Patrik,
like Tom suggested you may also want to download google maps tiles
directly, mosaic them and warp to your desired projection.
Tom's code getStaticGoogleMaps.R is a great thing!
However, I can't run it on Mac OSX, because I failed to
compile SAGA GIS. Instead developed code that calls GDAL programs.
If you work on Mac OSX or another UNIX system
you may try the script temporally here:
http://www.users.sbg.ac.at/~9722152/fetchGE/fetchGE.zip
Documentation is in file FetchGE.R
You need to install GDAL, python and wget, as well as library(rgdal).
Best wishes,
Roland
Hi Patrick,
I was breaking my head with this problem for one afternoon. Being more
a GIS person, my ideas was that one should be able to get a
StaticGoogleMaps image to some GIS format, i.e. to convert it to a
SpatialGridDataFrame. Then it is rather easy to overlay
points/lines/polygons using the spplot function (or to export to some
external GIS format e.g. geotiff). The procedure is now explained on
p.103-105 in my book (http://spatial-analyst.net/book/DataSources).
Here is the complete code:
http://spatial-analyst.net/book/getStaticGoogleMaps.R
T. Hengl
http://home.medewerker.uva.nl/t.hengl/
Quoting Patrick Crutcher <pcrutc...@gmail.com>:
I have some shapefiles I want to plot over Google Maps tiles. I have
polygons, lines and point data. What's the most efficient way to
do this?
One path might be to use the pkg RgoogleMaps, however, it is still
unclear
to me how to do this. I assume using PlotonStaticMap with some
combination
of reformatting the shapefile data. Thanks.
P.
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
----- End forwarded message -----
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo