<div dir="ltr">That sounds reasonable.<br clear="all"><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 8 Jun 2021 at 10:59, thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</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">There is no c++ version, although there are no specific go constructs<br>
that would prevent a port to c++ if you really wanted to.<br>
It could also be possible to export a C function from the go code,<br>
exposed as a shared library, that would only work on local files<br>
and who's signature would be something like:<br>
<br>
int rewrite(char *outputfilename, char *intpufilename);<br>
<br>
--<br>
thomas<br>
<br>
On Tue, Jun 8, 2021 at 10:32 AM Javier Jimenez Shaw <<a href="mailto:j1@jimenezshaw.com" target="_blank">j1@jimenezshaw.com</a>> wrote:<br>
><br>
> Thanks Thomas!<br>
> I see this is in Go. Is there a C++ version of it? Or how easy is to use it from C++ code?<br>
> Thanks.<br>
> .___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__<br>
> Entre dos pensamientos racionales<br>
> hay infinitos pensamientos irracionales.<br>
><br>
><br>
><br>
> On Fri, 4 Jun 2021 at 18:48, Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>> wrote:<br>
>><br>
>> I haven't benchmarked cogger but I'd expect it to be much faster than gdal_translate -of COG (if your input is GeoTIFF and always properly tiled and compressed of course!). gdal_translate -of COG uses generic GDAL API to acquire input data, which implies decompression / recompression. And in particular, if using input GeoTIFF with lossy compressed methods such as JPEG or WebP, cogger will avoid adding any new loss.<br>
>><br>
>> Le 04/06/2021 à 18:28, thomas bonfort a écrit :<br>
>><br>
>> I haven't extensively used -of COG (the cogger code actually predates the cog driver) but iirc there are at least some cases where it uses an intermediate file, which would imply that cogger does offer some speedups. I'll let Even confirm...<br>
>> Regards,<br>
>> Thomas<br>
>><br>
>> Le ven. 4 juin 2021 à 18:14, <<a href="mailto:Matt.Wilkie@yukon.ca" target="_blank">Matt.Wilkie@yukon.ca</a>> a écrit :<br>
>>><br>
>>> Is cogger specifically for the scenario where your converting a large imagery library that already exists, but isn't cloud optimized? i.e. Does it offer any advantages over the one step `gdal_translate -of cog ...` when starting fresh?<br>
>>><br>
>>> Cheers,<br>
>>><br>
>>> Matt<br>
>>> Geomatics Analyst | Environment | T 867-667-8133 | Yukon.ca<br>
>>> Hours: 08:30-16:30, Tue-Wed: Office, Thu-Fri: Remote.<br>
>><br>
>><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="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
>><br>
>> --<br>
>> <a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
>> My software is free, but my time generally not.<br>
>><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="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>