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.
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.
Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.stevenson@manchester.ac.uk
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:
On Tue, Oct 13, 2009 at 11:14 AM, Andrew Lewin
<andrew.lewin@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.
> 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.
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.
TODO:
- completely untested
- g.region -n is broken in at least devbr6 (trac #791) so
export only works from LL/WGS84 right now
- pythonization
- add a -k flag to d.out.file to write a KML file (test true north angle(s)!)
lol Awesome! Can you imagine ESRI creating a utility this way?
Thanks for doing this.
Roger
--
On Fri, Oct 16, 2009 at 8:36 PM, Hamish <hamish_b@yahoo.com> wrote:
Andrew wrote:
> 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.
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.
TODO:
- completely untested
- g.region -n is broken in at least devbr6 (trac #791) so
export only works from LL/WGS84 right now
- pythonization
- add a -k flag to d.out.file to write a KML file (test true north angle(s)!)