<div dir="ltr">Thanks for the suggestion! After you mentioned that a FileSource wouldn't work and thus I can't pull my images directly from image files client side I realized that for my purposes I didn't need my server side code to follow any particular standards. So client side I left it as a WMTSSource and made a simple server-side implementation that parses the (WMTS) url for the TILEMATRIX, TILECOLUMN, and TILEROW, and returns the corresponding image.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div> </div>
<div>~Terek Campbell</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 12, 2019 at 2:12 AM Adrien Berthet <<a href="mailto:Adrien.Berthet@ign.fr">Adrien.Berthet@ign.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Helvetica;color:rgb(0,0,0);font-size:10pt">
<div>Hello Terek,</div>
<div><br>
</div>
<div>Indeed, a FileSource is not adapted here, as (if I understand correctly) you have multiple images per level. What you can do is using TMSSource (<a href="http://www.itowns-project.org/itowns/docs/#api/Source/TMSSource" target="_blank">http://www.itowns-project.org/itowns/docs/#api/Source/TMSSource</a>),
 that only need a classic web server, as files are typically organized in directory here, or even all files as the same level. Files are accessed with a simple fetch request, with to special parameters in the url beside x/y/z.<br>
</div>
<div><br>
</div>
<div>Note also that using FileSource for displaying an image is not working correctly at the moment, that's something we would like to spend some time on when we got some time.</div>
<div><br>
</div>
<div>Adrien<br>
</div>
<div style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:16px">
<hr>
<div id="gmail-m_-5792173258033817108divRpF286142" style="direction:ltr"><font size="2" face="Tahoma" color="#000000"><b>De :</b> ITowns-user [<a href="mailto:itowns-user-bounces@lists.osgeo.org" target="_blank">itowns-user-bounces@lists.osgeo.org</a>] de la part de Terek Campbell [<a href="mailto:terekc@gmail.com" target="_blank">terekc@gmail.com</a>]<br>
<b>Envoyé :</b> vendredi 9 août 2019 22:25<br>
<b>À :</b> <a href="mailto:itowns-user@lists.osgeo.org" target="_blank">itowns-user@lists.osgeo.org</a><br>
<b>Objet :</b> [iTowns-user] How can I pull initial zoom level imagery from local files?<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>I'd like to store the initial camera's zoom level's images (25 million meters) as local files so that if a connection to our GeoServer is unavailable, there will still be a low resolution view of the globe available.</div>
<div><br>
</div>
<div>My thought was to use an iTowns.FileSource combined with a config similar to iTown's Ortho.json but with all but the first couple tileMatrixSetLimits removed. Then having my second imagery layer providing all zoom levels after 3 by the typical means.</div>
<div><br>
</div>
<div>I'm not sure how to use a FileSource to pull imagery data locally. Can anyone shed some insight?<br clear="all">
<div>
<div dir="ltr" class="gmail-m_-5792173258033817108gmail_signature">
<div> </div>
<div>~Terek Campbell</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>