<div dir="ltr"><div><div><div>thanks for your suggestions,<br><br></div>i dont really want to convert raster to vector at the exploratory stage i'm in- was just looking to use in-built tools that converted the raster to a png and wrappend kml around it- which is what r.out.kml did.<br>
<br></div>however, i have never before used this GUI-based "KML SUPEROVERLAY" format option that appears with v.out.ogr. thats what i've been trying and failing - just getting a black box which is correctly georegistered. i have a feeling its to do with the rendering of colors for each thematic class, and that in turn might be to do with the data type..but its just a guess.<br>
<br></div>Vishal<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 5:30 AM, Thomas Adams <span dir="ltr"><<a href="mailto:tea3rd@gmail.com" target="_blank">tea3rd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Sylvain,<br><br></div>I agree with your approach. However, I have run into one difficulty, which is if the raster is very detailed (say, 1-ft Lidar) and the computational region is relatively large (several square kilometers), GRASS has considerable problems with the raster-to-vect conversion. The problem is that each raster pixel is transformed to a polygon, so the result is that there can be millions of polygons which the v.build process embedded within r.to.vect , seems to run out of memory. This happens despite the fact that I am running GRASS on 64-bit Ubuntu Linux with 16 GB RAM<br>

<br></div>My process is this:<br><br>r.to.vect -b input=flood_225.50@teaiii output=flood_225_50 type=area<br><br>v.db.addcolumn map=flood_225_50@teaiii columns="flood_area varchar(12)"<br>v.db.update map=flood_225_50@teaiii layer=1 column=flood_area value=225_50<br>

v.dissolve input=flood_225_50@teaiii column=flood_area output=flood_225_50_dissolve<br>v.out.ogr -c --overwrite input=flood_226_50_dissolve@teaiii dsn=flood_226_50.kml format=KML<br><br></div><div>Over the same computational region, if my grid resolution is 3-meters, I have no problems; with 1-ft (~0.3 meters) grid resolution, I have problems.<br>

</div><div><br></div><div>Regards,<br><br></div>Tom<div><div class="h5"><br><div><div><br><br><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 3:43 AM, Sylvain Maillard <span dir="ltr"><<a href="mailto:sylvain.maillard@gmail.com" target="_blank">sylvain.maillard@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div><div>kml is usually more used for vector data.<br></div>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 ...<br>


<br></div><div>Have you try to transform your raster into vector (<a href="http://grass.osgeo.org/grass64/manuals/r.to.vect.html" target="_blank">http://grass.osgeo.org/grass64/manuals/r.to.vect.html</a>) and then to export the vector to kml ?<br>


<br><br></div><div>Sylvain<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-23 20:26 GMT+02:00 Vishal Mehta <span dir="ltr"><<a href="mailto:vishalm1975@gmail.com" target="_blank">vishalm1975@gmail.com</a>></span>:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>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.<br>



<br><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">r.out.gdal -c input=lsat2014_unsupervised@PERMANENT output=C:\Users\Vishal\Documents\GIS\file3.kmz format=KMLSUPEROVERLAY type=Byte nodata=0<br>



<br></span></div>but no matter what flags i try, i get a black box on google earth. <br></div><img style="margin-right:0px" alt="" height="213" width="442"><br>
<br></div>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.<br><br>



<div><div><div>Thanks!<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div>Vishal<span><font color="#888888"><br clear="all"></font></span></div><span><font color="#888888"><div>
<div><br>-- <br>Vishal K. Mehta, PhD<br>Sr Scientist<br>
Stockholm Environment Institute - US<br>133 D St Suite F<br>Davis CA 95616<br><a href="http://www.sei-us.org" target="_blank">www.sei-us.org</a>
</div></div></font></span></font></span></div></div></div><span><font color="#888888">
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></font></span></blockquote></div><br></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br><br><div><br></div>
</div></div></div></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br><br clear="all"><br>-- <br>Vishal K. Mehta, PhD<br>Scientist<br>
Stockholm Environment Institute - US<br>133 D St Suite F<br>Davis CA 95616<br><a href="http://www.sei-us.org">www.sei-us.org</a>
</div>