Hello, I need to know the disk size of an image, I calculate it using the 
following formula:

Disk size=( sizex*sizey*bits per pixel)/8 =memory size without compression

But when the image is compressed on disk it occupies less and the size in 
memory is much larger, is there some method in the C++ GDAL API, to obtain the 
size on disk, size on memory, or the compression factor?
Example:
SizeX: 60416
SizeY:38656
Bits per pixel:24

Size memory= (60416*38656*24)/8=7.006.322.688 bytes
Size disk=2.137.644.631 bytes

The format image is COG - Cloud Optimized GeoTIFF generator, and has JPEG 
compression

Thanks and regards
________________________________

[https://www.aplitop.com/descargas/firma1.jpg]


Elena Ruiz
Sofware Development & Technical Support
Tel. +34 952 43 97 71
er...@aplitop.com
Sumatra, 9 - 29190 M?laga (Spain)
www.aplitop.com

[cid:SocialLink_Facebook_32x32_a745adb8-c250-4372-8480-e77f503dad3d.png]<https://www.facebook.com/AplitopSL/>
   [cid:SocialLink_Twitter_32x32_858247f6-9d4a-4740-a6b3-9b5ebfd98a97.png] 
<https://twitter.com/aplitop>    
[cid:SocialLink_Linkedin_32x32_154d63de-bf68-468f-9eb0-ffed102fac77.png] 
<https://www.linkedin.com/company/aplitop>    
[cid:SocialLink_Youtube_32x32_0dea15dd-3774-4086-be9d-f62560b70c86.png] 
<https://www.youtube.com/user/aplitop>


In accordance with the provisions of the European Regulation of Data Protection 
2016/679 (Reglamento Europeo de Protecci?n de Datos 2016/679), we inform you 
that the data and the information you provide us through this medium will be 
used by APLITOP, S.L., with C.I.F. B-92543396 and with address at C / Sumatra, 
9, Malaga, 29190, in order to answer your questions and inform you about our 
products. The data provided will be kept as long as it does not request its 
cessation and will not be transferred to third parties except in cases where 
there is a legal obligation. You have the right to access your personal data, 
correct inaccurate data or request its deletion when the data is no longer 
necessary for the purposes that were collected, as well as any rights 
recognized in the RGPD 2016/679
<https://www.aplitop.com/New/en/443/publication-of-point-clouds-on-web>

<https://www.aplitop.com/New/en/438/tcpmdt-v9-is-here><https://www.aplitop.com/Event/en/429/aplitop-at-intergeo-2022-essen>

<https://www.aplitop.com/Event/en/358/intergeo-2019>

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to