R/Overlay2GE.R

Defines functions Overlay2GE

Documented in Overlay2GE

Overlay2GE = function(coords, image = "/home/Images/myimage.jpg", goo = "Overlay2GE.kml"){
cat("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n
<kml xmlns=\"http://earth.google.com/kml/2.1\">
<GroundOverlay>
	<name>Image</name>
	<color>b2ffffff</color>
	<Icon>
	  <href>",image,"</href>
	</Icon>
	<LatLonBox>
		<north>",coords[1],"</north>
		<south>",coords[2],"</south>
		<east>",coords[3],"</east>
		<west>",coords[4],"</west>
	</LatLonBox>
</GroundOverlay>
</kml>", file = goo)
}

Try the R2G2 package in your browser

Any scripts or data that you put into this service are public.

R2G2 documentation built on May 29, 2017, 1:41 p.m.