<div dir="ltr">There are lots of examples to learn from in the autotest suite.   That's where I learn a lot of stuff.<div><br></div><div><a href="https://trac.osgeo.org/gdal/browser/trunk/autotest/gdrivers/png.py?rev=33793#L211">https://trac.osgeo.org/gdal/browser/trunk/autotest/gdrivers/png.py?rev=33793#L211</a><br></div><div><br></div><div>Or for examples in C++14, there is also my draft autotest2.  You can see examples like this:</div><div><br></div><div><a href="https://github.com/schwehr/gdal-autotest2/blob/626a97593df7d4a4e66a31a3412b1386e936505a/cpp/ogr/ogrsf_frmts/libkml/libkml_test.cc#L62">https://github.com/schwehr/gdal-autotest2/blob/626a97593df7d4a4e66a31a3412b1386e936505a/cpp/ogr/ogrsf_frmts/libkml/libkml_test.cc#L62</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 8:28 AM, domlysz <span dir="ltr"><<a href="mailto:domlysz@gmail.com" target="_blank">domlysz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you very mutch, it work like a charm!<br>
<br>
I would never have found this solution by myself.<br>
<br>
Best regards<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Python-Save-a-dataset-to-an-in-memory-Python-Bytes-object-tp5280254p5280271.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/GDAL-Python-Save-a-<wbr>dataset-to-an-in-memory-<wbr>Python-Bytes-object-<wbr>tp5280254p5280271.html</a><br>
<span class="im HOEnZb">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--<div><a href="http://schwehr.org" target="_blank">http://schwehr.org</a></div></div>
</div>