Skip to content
Back to formatted view

Raw Message

Message-ID: <1296764856801-5990349.post@n2.nabble.com>
Date: 2011-02-03T20:27:36Z
From: Robert J. Hijmans
Subject: RgoogleMaps
In-Reply-To: <1296763970972-5990287.post@n2.nabble.com>

> Dear all, 
> I'm using the package RgoogleMaps to import google earth maps into R. The
> object that is retrieved with function GetMap contains a number of slots
> which I think can be used to translate the google picture into a geoTiff
> to for example import into ArgGis. 
> If anyone would have an example of how to accomplish that or what function
> to use, I'd be very greatful. 
> Best wishes, 
> Erik Meesters 
> 

Erik, it is is actually much simpler:

g <- gmap("Amsterdam, Netherlands", type='satellite', filename="adam.gif")
hdr(g, 'worldfile', 'gfw')

Now open "adam.gif" in ArcMap, but set the projection of the ArcGIS
"data.frame" to Mercator.

Robert
-- 
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/RgoogleMaps-tp5989261p5990349.html
Sent from the R-sig-geo mailing list archive at Nabble.com.