<html 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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">You might also try reporting your issues to geotiff.js project on GitHub. I’m fairly certain that library decodes tiles using JavaScript so it is probably that which is slowing it down over simply downloading the tiles. I’ve been going
back and forth on an issue related to WebP support, where the project maintainer is adding a feature for browser-based decoding. This happens to work for the way GDAL produces COGs with WebP encoding, where each tile is stored as a standalone WebP file, and
might be true for other compression schemes as well. However, if for example, each encoded tile is not standalone and requires information from the GeoTIFF headers, then this won’t be possible.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Marty Sullivan<o:p></o:p></p>
<p class="MsoNormal">Cornell University<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Patrick Young <patrick.mckendree.young@gmail.com><br>
<b>Date: </b>Tuesday, April 13, 2021 at 11:35 AM<br>
<b>To: </b>Javier Jimenez Shaw <j1@jimenezshaw.com><br>
<b>Cc: </b>gdal dev <gdal-dev@lists.osgeo.org><br>
<b>Subject: </b>Re: [gdal-dev] COG + javascript + openlayers<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">There is a COG mailing list (not very active from the looks of it):<br>
<br>
<a href="https://lists.osgeo.org/mailman/listinfo/cog">https://lists.osgeo.org/mailman/listinfo/cog</a><br>
<br>
You might ping Vincent <a href="https://github.com/vincentsarago">https://github.com/vincentsarago</a> too!<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">P<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Apr 13, 2021 at 2:31 AM Javier Jimenez Shaw <<a href="mailto:j1@jimenezshaw.com">j1@jimenezshaw.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Maybe this channel is not the best place for this question. Do you know a better place to ask?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thank you<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__<br>
Entre dos pensamientos racionales <br>
hay infinitos pensamientos irracionales.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, 6 Apr 2021 at 22:40, Javier Jimenez Shaw <<a href="mailto:j1@jimenezshaw.com" target="_blank">j1@jimenezshaw.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Hi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">While I was reading about COG format, I thought it was great to replace "gdal2tiles" if the COG was properly generated (I mean, using the option TILING_SCHEME=GoogleMapsCompatible , and maybe something else I miss. I am generating it, so
I can optimize that).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Then I was expecting that geotiff.js (or any other client js library) will be able to do the proper RANGE request to produce the tiling that libraries like openlayers of leaflet is expecting. Yes, in Web Mercator projection with aligned
tiles, so no transformation is needed.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">My initial target is just for RGBA uint8 images... plain vanilla. Storing the COG file in S3, without any proxy in between doing any conversion. Just relying on the RANGE request to get the needed area. My initial idea is to keep the openlayers/leaflet
256x256 tiles. This allows parallel requests to the server, and is very fast (and I do not have to refactor all my js code). But maybe there is a better/faster solution (again, with S3 direct access, no proxy in the server side. That would require deploying
the "proxy" on every geographical region).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">However I have not found any proper solution (my search-fu is not the best, to be honest). I would like something that performs
<i>at least</i> as fast as the tiles produced by gdal2tiles.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Do you know any solution/example?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__<br>
Entre dos pensamientos racionales <br>
hay infinitos pensamientos irracionales.<o:p></o:p></p>
</div>
</div>
</div>
</div>
</blockquote>
</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="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>