[GRASS-user] Export Raster to Google Earth Files

Roger André randre at gmail.com
Fri Oct 16 14:48:26 EDT 2009


The easiest way to do this for 1 or 2 reasonably sized rasters is to
simply write a very short KML file that points to the image name and
defines its geographic extents.  If you have to do it for hundreds of
files, then scripting it is much faster.  I can send you a short Perl
script that uses gdalinfo to determine the extents.  Here is what the
KML should look like:

<GroundOverlay>
<description>Something pithy</description>
<name>Something else pithy</name>
<visibility>1</visibility>
<open>1</open>
<Icon>
<href>"name_of_image_file"</href>
</Icon>
<drawOrder>0</drawOrder>
<LatLonBox>
<north>  DD.dddd</north>
<south>  DD.dddd</south>
<west> DD.dddd</west>
<east> DD.dddd</east>
</LatLonBox>
</GroundOverlay>

Roger
--

On Tue, Oct 13, 2009 at 11:14 AM, Andrew Lewin
<andrew.lewin at sympatico.ca> wrote:
> Hi Everyone,
>
> I would like to export raster files to a Google Earth image (kmz or kml).
>  Does anyone know how this is done?  I found a way to export a vector to a
> kmz file, but not a raster.
>
> Your help is very much appreciated.
>
> Best,
>
> Andrew
>
> Andrew Lewin, M.Sc., Adv. Dipl. GIS
> Email: andrew.lewin at sympatico.ca
> Tel: (905) 639-4646
> Mobile: (905) 630-8441
> Skype: andrew.lewin99
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list