<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML pré-formatado Carácter";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLpr-formatadoCarcter
        {mso-style-name:"HTML pré-formatado Carácter";
        mso-style-priority:99;
        mso-style-link:"HTML pré-formatado";
        font-family:Consolas;
        mso-fareast-language:PT;}
span.EstiloCorreioElectrnico19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Paul.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I had to build a big vrt. The one trick that got it loading very fast into qgis was adding statistics to each rasterband:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  <Metadata><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">      <MDI key="STATISTICS_MAXIMUM">255</MDI><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">      <MDI key="STATISTICS_MEAN">111.6784426525</MDI><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">      <MDI key="STATISTICS_MINIMUM">0</MDI><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">      <MDI key="STATISTICS_STDDEV">52.100074055799</MDI><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">    </Metadata><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I just got stats from a subset and used that for all bands.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Duarte<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Paul Meems (Top-X) [mailto:p.meems@topx-group.nl]
<br>
<b>Enviada:</b> quinta-feira, 12 de Julho de 2012 12:11<br>
<b>Para:</b> gdal-dev@lists.osgeo.org<br>
<b>Assunto:</b> Re: [gdal-dev] Tiling aerial photos<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks Dmitry and Even,<br>
<br>
The aerial photos are north-up and are in the same projection and I think also in the same resolution.<br>
It are commercial aerial photos.<br>
<br>
The Correlator project sounds very interesting but not necessary in my case.<br>
I'll try to implement the VRT format and see what the performance will be.<br>
If it is fast we don't need to tile.<br>
<br>
Thanks,<br>
<br>
Paul <br>
<br>
2012/7/12 Even Rouault <<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Selon "Paul Meems (Top-X)" <<a href="mailto:p.meems@topx-group.nl">p.meems@topx-group.nl</a>>:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">> Thanks Even,<br>
><br>
> <a href="http://www.gdal.org/gdalbuildvrt.html" target="_blank">http://www.gdal.org/gdalbuildvrt.html</a> does seems very interesting.<br>
> As I understand it, it will do the merging part (without actually merging).<o:p></o:p></p>
</div>
<p class="MsoNormal">The VRT driver will do on-the-fly merging of tiles that have overlapping. The<br>
VRT itself is just a XML file.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
><br>
> But it doesn't do the tiling part, right?<o:p></o:p></p>
</div>
<p class="MsoNormal">No, I wasn't sure if your photos were already regularly tiled or not. Note that<br>
the VRT accepts non regularly tiled images. They can have overlapping, gaps,<br>
different resolutions, etc. The main constraints are :<br>
- they are in the same projection<br>
- they are "north-up", that is to say there is no rotation or skewing term in<br>
their geotransform matrix<br>
- they have the same number of bands<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
> Or is the vrt so optimized tiling<br>
> is no longer necessary?<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Not necessary. Note that the VRT has no internal spatial indexing, so if you<br>
have several dozains of thousands of images in a VRT, it might slow down because<br>
it will iterate over all the image descriptions (without needing to open them<br>
however, all the information is in the VRT) to see if they intersect with the<br>
request window. But I'd expect the number of images in the VRT to be really high<br>
for that effect to become noticeable.<br>
<br>
><br>
> Thanks,<br>
><br>
> Paul<o:p></o:p></p>
<div>
<p class="MsoNormal">2012/7/12 Dmitry Baryshnikov <<a href="mailto:polimax@mail.ru" target="_blank">polimax@mail.ru</a>><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">12.07.2012 14:36, Paul Meems (Top-X) пишет:<o:p></o:p></p>
</div>
<div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">Thanks Even,<br>
<br>
<a href="http://www.gdal.org/gdalbuildvrt.html" target="_blank">http://www.gdal.org/gdalbuildvrt.html</a> does seems very interesting.<br>
As I understand it, it will do the merging part (without actually merging).<br>
<br>
But it doesn't do the tiling part, right? Or is the vrt so optimized tiling is no longer necessary?<br>
<br>
Thanks,<br>
<br>
Paul <br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">2012/7/12 Even Rouault <<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>><o:p></o:p></p>
<p class="MsoNormal">Selon "Paul Meems (Top-X)" <<a href="mailto:p.meems@topx-group.nl" target="_blank">p.meems@topx-group.nl</a>>:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
> Hi list,<br>
><br>
> I have several aerial photos and I use MapWindow GIS to view them.<br>
> MapWindow is already using GDAL v1.8<br>
><br>
> Instead of loading each aerial photo as an individual layer I want to<br>
> create a local tiles store of the photos.<br>
> I can then just load the tiles I need based on the scale and view. This<br>
> will most likely improve the performance.<br>
><br>
> The process will be something like this:<br>
> 1. Get the filenames of the photos<br>
> 2. Merge them into one<br>
> 3. Create tiles<br>
> 4. Put the tiles in a SQLite database<br>
><br>
> My first question: Is the above suggested process correct or should I do it<br>
> differently?<br>
> My second question: What GDAL functions should I look into to accomplish my<br>
> process?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">You could try to make a VRT from all your photos. It will be seen as a single<br>
GDAL dataset, and will take care of the burden of opening the underlying photos<br>
when needed. You can use the gdalbuildvrt utility to create the VRT from the<br>
photos.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
><br>
> Thanks,<br>
><br>
> Paul Meems<br>
> The Netherlands<br>
><br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gdal-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
</blockquote>
</div>
</div>
<p class="MsoNormal">There is an interesting work connected aerial imagery: <a href="http://trac.osgeo.org/gdal/wiki/Correlator" target="_blank">
http://trac.osgeo.org/gdal/wiki/Correlator</a><br>
<a href="http://correlatorgsoc2012.blogspot.com/" target="_blank">http://correlatorgsoc2012.blogspot.com/</a><br>
<br>
Best regards,<br>
    Dmitry<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>