Hi,

I took cogger for a first test drive and I'm confused. I'm relatively new to 
the world of Cloud Optimized Geotiffs, so I don't know if my confusion is about 
the COG format itself or cogger:

I fed a jpeg-in-geotiff file with external overviews (tif.ovr) and mask 
(tif.msk) to cogger. The output contains neither overviews or mask. Is that the 
expected result?

It's my understanding not having overviews is the rare case, and do that only 
if you know what you're doing (I don't!). Is there something I should be doing 
to keep or regenerate the overviews?

Gdalinfo reports for in and output attached. Gdal's validate-cog python script 
says the output is a valid cog, also attached.

Best,

Matt Wilkie
Geomatics Developer & Administrator
Environment | Technology, Innovation and Mapping
T 867-667-8133 | Yukon.ca<http://yukon.ca/>
Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.

Driver: GTiff/GeoTIFF
Files: test.tif
Size is 126015, 68149
Coordinate System is:
PROJCRS["NAD_1983_Yukon_Albers",
    BASEGEOGCRS["NAD83",
        DATUM["North American Datum 1983",
            ELLIPSOID["GRS 1980",6378137,298.257222101004,
                LENGTHUNIT["metre",1]]],
        PRIMEM["Greenwich",0,
            ANGLEUNIT["degree",0.0174532925199433]],
        ID["EPSG",4269]],
    CONVERSION["Albers Equal Area",
        METHOD["Albers Equal Area",
            ID["EPSG",9822]],
        PARAMETER["Latitude of false origin",59,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8821]],
        PARAMETER["Longitude of false origin",-132.5,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8822]],
        PARAMETER["Latitude of 1st standard parallel",61.6666666666667,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8823]],
        PARAMETER["Latitude of 2nd standard parallel",68,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8824]],
        PARAMETER["Easting at false origin",500000,
            LENGTHUNIT["metre",1],
            ID["EPSG",8826]],
        PARAMETER["Northing at false origin",500000,
            LENGTHUNIT["metre",1],
            ID["EPSG",8827]]],
    CS[Cartesian,2],
        AXIS["easting",east,
            ORDER[1],
            LENGTHUNIT["metre",1]],
        AXIS["northing",north,
            ORDER[2],
            LENGTHUNIT["metre",1]],
    ID["EPSG",3578]]
Data axis to CRS axis mapping: 1,2
Origin = (293217.000000000000000,1126371.000000000000000)
Pixel Size = (1.500000000000000,-1.500000000000000)
Metadata:
  AREA_OR_POINT=Area
  DataType=Processed
Image Structure Metadata:
  COMPRESSION=JPEG
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  293217.000, 1126371.000) (136d49'19.22"W, 64d33'30.27"N)
Lower Left  (  293217.000, 1024147.500) (136d40'52.72"W, 63d38'41.16"N)
Upper Right (  482239.500, 1126371.000) (132d52'18.43"W, 64d37'15.93"N)
Lower Right (  482239.500, 1024147.500) (132d51'34.73"W, 63d42'19.54"N)
Center      (  387728.250, 1075259.250) (134d48'36.81"W, 64d 8'43.57"N)
Band 1 Block=128x128 Type=Byte, ColorInterp=Red
  Min=0.000 Max=255.000 
  Minimum=0.000, Maximum=255.000, Mean=50.198, StdDev=75.457
  NoData Value=256
  Metadata:
    RepresentationType=ATHEMATIC
    STATISTICS_MAXIMUM=255
    STATISTICS_MEAN=50.197691262641
    STATISTICS_MINIMUM=0
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=75.456911360778
Band 2 Block=128x128 Type=Byte, ColorInterp=Green
  Min=0.000 Max=255.000 
  Minimum=0.000, Maximum=255.000, Mean=50.863, StdDev=75.993
  NoData Value=256
  Metadata:
    RepresentationType=ATHEMATIC
    STATISTICS_MAXIMUM=255
    STATISTICS_MEAN=50.862667930779
    STATISTICS_MINIMUM=0
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=75.993162525726
Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
  Min=0.000 Max=255.000 
  Minimum=0.000, Maximum=255.000, Mean=44.089, StdDev=71.226
  NoData Value=256
  Metadata:
    RepresentationType=ATHEMATIC
    STATISTICS_MAXIMUM=255
    STATISTICS_MEAN=44.08913515331
    STATISTICS_MINIMUM=0
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=71.225888610331
Driver: GTiff/GeoTIFF
Files: SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers.tif
       SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers.tif.ovr
       SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers.tif.msk.ovr
       SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers.tif.msk
       SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers.tif.aux.xml
Size is 126015, 68149
Coordinate System is:
PROJCRS["NAD_1983_Yukon_Albers",
    BASEGEOGCRS["NAD83",
        DATUM["North American Datum 1983",
            ELLIPSOID["GRS 1980",6378137,298.257222101004,
                LENGTHUNIT["metre",1]]],
        PRIMEM["Greenwich",0,
            ANGLEUNIT["degree",0.0174532925199433]],
        ID["EPSG",4269]],
    CONVERSION["Albers Equal Area",
        METHOD["Albers Equal Area",
            ID["EPSG",9822]],
        PARAMETER["Latitude of false origin",59,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8821]],
        PARAMETER["Longitude of false origin",-132.5,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8822]],
        PARAMETER["Latitude of 1st standard parallel",61.6666666666667,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8823]],
        PARAMETER["Latitude of 2nd standard parallel",68,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8824]],
        PARAMETER["Easting at false origin",500000,
            LENGTHUNIT["metre",1],
            ID["EPSG",8826]],
        PARAMETER["Northing at false origin",500000,
            LENGTHUNIT["metre",1],
            ID["EPSG",8827]]],
    CS[Cartesian,2],
        AXIS["easting",east,
            ORDER[1],
            LENGTHUNIT["metre",1]],
        AXIS["northing",north,
            ORDER[2],
            LENGTHUNIT["metre",1]],
    ID["EPSG",3578]]
Data axis to CRS axis mapping: 1,2
Origin = (293217.000000000000000,1126371.000000000000000)
Pixel Size = (1.500000000000000,-1.500000000000000)
Metadata:
  AREA_OR_POINT=Area
  DataType=Processed
Image Structure Metadata:
  COMPRESSION=JPEG
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  293217.000, 1126371.000) (136d49'19.22"W, 64d33'30.27"N)
Lower Left  (  293217.000, 1024147.500) (136d40'52.72"W, 63d38'41.16"N)
Upper Right (  482239.500, 1126371.000) (132d52'18.43"W, 64d37'15.93"N)
Lower Right (  482239.500, 1024147.500) (132d51'34.73"W, 63d42'19.54"N)
Center      (  387728.250, 1075259.250) (134d48'36.81"W, 64d 8'43.57"N)
Band 1 Block=128x128 Type=Byte, ColorInterp=Red
  Min=0.000 Max=255.000 
  Minimum=0.000, Maximum=255.000, Mean=50.614, StdDev=74.600
  NoData Value=256
  Overviews: 63008x34075, 31504x17038, 15752x8519, 7876x4260, 3938x2130, 
1969x1065, 985x533, 493x267, 247x134
  Mask Flags: PER_DATASET 
  Overviews of mask band: 63008x34075, 31504x17038, 15752x8519, 7876x4260, 
3938x2130, 1969x1065, 985x533, 493x267, 247x134
  Metadata:
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=5565.128437942932,5540.865735280094,5024.566743610575
    STATISTICS_MAXIMUM=255
    STATISTICS_MEAN=50.613830309646
    STATISTICS_MINIMUM=0
    STATISTICS_SKIPFACTORX=3
    STATISTICS_SKIPFACTORY=3
    STATISTICS_STDDEV=74.599788457763
Band 2 Block=128x128 Type=Byte, ColorInterp=Green
  Min=0.000 Max=255.000 
  Minimum=0.000, Maximum=255.000, Mean=51.316, StdDev=74.979
  NoData Value=256
  Overviews: 63008x34075, 31504x17038, 15752x8519, 7876x4260, 3938x2130, 
1969x1065, 985x533, 493x267, 247x134
  Mask Flags: PER_DATASET 
  Overviews of mask band: 63008x34075, 31504x17038, 15752x8519, 7876x4260, 
3938x2130, 1969x1065, 985x533, 493x267, 247x134
  Metadata:
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=5540.865735280094,5621.831514064254,5110.691753124167
    STATISTICS_MAXIMUM=255
    STATISTICS_MEAN=51.316138944418
    STATISTICS_MINIMUM=0
    STATISTICS_SKIPFACTORX=3
    STATISTICS_SKIPFACTORY=3
    STATISTICS_STDDEV=74.978873784982
Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
  Min=0.000 Max=255.000 
  Minimum=0.000, Maximum=255.000, Mean=45.167, StdDev=69.648
  NoData Value=256
  Overviews: 63008x34075, 31504x17038, 15752x8519, 7876x4260, 3938x2130, 
1969x1065, 985x533, 493x267, 247x134
  Mask Flags: PER_DATASET 
  Overviews of mask band: 63008x34075, 31504x17038, 15752x8519, 7876x4260, 
3938x2130, 1969x1065, 985x533, 493x267, 247x134
  Metadata:
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=5024.566743610575,5110.691753124167,4850.825968821137
    STATISTICS_MAXIMUM=255
    STATISTICS_MEAN=45.166863168231
    STATISTICS_MINIMUM=0
    STATISTICS_SKIPFACTORX=3
    STATISTICS_SKIPFACTORY=3
    STATISTICS_STDDEV=69.647871244002
SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers.tif is NOT a valid cloud 
optimized GeoTIFF.
The following errors were found:
 - Overviews found in external .ovr file. They should be internal
 - The offset of the main IFD should be 16. It is 3976461646 instead
 - The offset of the IFD for overview of index 0 is 16, whereas it should be 
greater than the one of the main image, which is at byte 3976461646
 - The offset of the first block of overview of index 7 should be after the one 
of the overview of index 8
 - The offset of the first block of overview of index 6 should be after the one 
of the overview of index 7
 - The offset of the first block of overview of index 5 should be after the one 
of the overview of index 6
 - The offset of the first block of overview of index 4 should be after the one 
of the overview of index 5
 - The offset of the first block of overview of index 3 should be after the one 
of the overview of index 4
 - The offset of the first block of overview of index 2 should be after the one 
of the overview of index 3
 - The offset of the first block of overview of index 1 should be after the one 
of the overview of index 2
 - The offset of the first block of overview of index 0 should be after the one 
of the overview of index 1

The following warnings were found:
 - The file is greater than 512xH or Wx512, it is recommended to include 
internal overviews

test.tif is a valid cloud optimized GeoTIFF
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to