[GRASS-user] exporting raster map to kmz?

Sylvain Maillard sylvain.maillard at gmail.com
Fri Jul 25 00:43:27 PDT 2014


Hi,

kml is usually more used for vector data.
looking at the header "<img style="margin-right: 0px;"
src="data:image/png;base64,iVBORw0KGgo", it seems that r.out.gdal is just
writing the binary code for your raster in an image tag in the kml file ...

Have you try to transform your raster into vector (
http://grass.osgeo.org/grass64/manuals/r.to.vect.html) and then to export
the vector to kml ?


Sylvain



2014-07-23 20:26 GMT+02:00 Vishal Mehta <vishalm1975 at gmail.com>:

> Hi all,
>
> I'm trying to classify a LANDSAT8 image. In the process, i'd like to
> export an unsupervised classification i did (using i.cluster, followed by
> i.maxlik) raster (type:CELL) into kml/kmz, so that I could get some visual
> idea of the classification. the classification is from 1 to 10, with null
> data present.
>
> r.out.gdal -c input=lsat2014_unsupervised at PERMANENT
> output=C:\Users\Vishal\Documents\GIS\file3.kmz format=KMLSUPEROVERLAY
> type=Byte nodata=0
>
> but no matter what flags i try, i get a black box on google earth.
>
>
> I'm just using the GUI options, Grass7svn on Windows. FYI, I do know how
> to do this by modifying add-on r.out.kml in Linux, but it would be good if
> i could just do my entire workflow on one platform.
>
> Thanks!
> Vishal
>
> --
> Vishal K. Mehta, PhD
> Sr Scientist
> Stockholm Environment Institute - US
> 133 D St Suite F
> Davis CA 95616
> www.sei-us.org
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140725/e8d67871/attachment.html>


More information about the grass-user mailing list