[gdal-dev] Building pyramids with gdaladdo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] Building pyramids with gdaladdo

Gil-2
Hey,

I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.
I'd like to build it's pyramids till I reach a level with only 1 tile, I tried using gdaladdo, and when I built it with 2-256 factors, I got a result that has level 18-11 where level 11 has two tiles.

I got two problems, I don't understand how I got level 18 after building pyramids upwards?
And I'd like to reach one tile, so I tried using 512, however I get an error asking me to use gpkg_zoom_other, I don't understand why, and I am not sure how to use it?
The error i'm getting is: 
Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed
ERROR 1: Could not find dataset corresponding to ov factor 512

Would appreciate some help routing me in the right direction.

Thanks!




_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Building pyramids with gdaladdo

bradh

Can you show exactly how you did the conversion and overviews, and the dimensions of the original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG, possibly you need to fill your TIFF.

 

The part about gpkg_zoom_other is telling you that what you are asking for can’t be done without breaking the power-of-two zoom level constraint.  What do you intend to do with your geopackage? The extensions that make sense will depend on the consumers of the file.

 

Brad

From: gdal-dev [mailto:[hidden email]] On Behalf Of Gil
Sent: Saturday, 17 February 2018 7:12 PM
To: [hidden email]
Subject: [gdal-dev] Building pyramids with gdaladdo

 

Hey,

 

I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.

I'd like to build it's pyramids till I reach a level with only 1 tile, I tried using gdaladdo, and when I built it with 2-256 factors, I got a result that has level 18-11 where level 11 has two tiles.

 

I got two problems, I don't understand how I got level 18 after building pyramids upwards?

And I'd like to reach one tile, so I tried using 512, however I get an error asking me to use gpkg_zoom_other, I don't understand why, and I am not sure how to use it?

The error i'm getting is: 

Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed

ERROR 1: Could not find dataset corresponding to ov factor 512

 

Would appreciate some help routing me in the right direction.

 

Thanks!

 

 

 


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Building pyramids with gdaladdo

Gil-2
My tiff file is 19968x29952 which I understand when calculated to the 512 level goes un-even, is there anything I can do to go that extra level?
I am converting to JPEG, it works well, I don't understand how I am reaching level 18 when the original has 17.
Conversion is done like this:

gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg
gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 254 512

I am going to display the geopackage with a custom web viewer, that works best when the upper level has only 1 tile.

Thanks.

On 17 February 2018 at 10:20, <[hidden email]> wrote:

Can you show exactly how you did the conversion and overviews, and the dimensions of the original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG, possibly you need to fill your TIFF.

 

The part about gpkg_zoom_other is telling you that what you are asking for can’t be done without breaking the power-of-two zoom level constraint.  What do you intend to do with your geopackage? The extensions that make sense will depend on the consumers of the file.

 

Brad

From: gdal-dev [mailto:[hidden email]] On Behalf Of Gil
Sent: Saturday, 17 February 2018 7:12 PM
To: [hidden email]
Subject: [gdal-dev] Building pyramids with gdaladdo

 

Hey,

 

I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.

I'd like to build it's pyramids till I reach a level with only 1 tile, I tried using gdaladdo, and when I built it with 2-256 factors, I got a result that has level 18-11 where level 11 has two tiles.

 

I got two problems, I don't understand how I got level 18 after building pyramids upwards?

And I'd like to reach one tile, so I tried using 512, however I get an error asking me to use gpkg_zoom_other, I don't understand why, and I am not sure how to use it?

The error i'm getting is: 

Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed

ERROR 1: Could not find dataset corresponding to ov factor 512

 

Would appreciate some help routing me in the right direction.

 

Thanks!

 

 

 



_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Building pyramids with gdaladdo

Gil-2
In reply to this post by bradh
My tiff file is 19968x29952 which I understand when calculated to the 512 level goes un-even, is there anything I can do to go that extra level?
I am converting to JPEG, it works well, I don't understand how I am reaching level 18 when the original has 17.
Conversion is done like this:

gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg
gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 254 512

I am going to display the geopackage with a custom web viewer, that works best when the upper level has only 1 tile.

Thanks.

On 17 February 2018 at 10:20, <[hidden email]> wrote:

Can you show exactly how you did the conversion and overviews, and the dimensions of the original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG, possibly you need to fill your TIFF.

 

The part about gpkg_zoom_other is telling you that what you are asking for can’t be done without breaking the power-of-two zoom level constraint.  What do you intend to do with your geopackage? The extensions that make sense will depend on the consumers of the file.

 

Brad

From: gdal-dev [mailto:[hidden email]] On Behalf Of Gil
Sent: Saturday, 17 February 2018 7:12 PM
To: [hidden email]
Subject: [gdal-dev] Building pyramids with gdaladdo

 

Hey,

 

I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.

I'd like to build it's pyramids till I reach a level with only 1 tile, I tried using gdaladdo, and when I built it with 2-256 factors, I got a result that has level 18-11 where level 11 has two tiles.

 

I got two problems, I don't understand how I got level 18 after building pyramids upwards?

And I'd like to reach one tile, so I tried using 512, however I get an error asking me to use gpkg_zoom_other, I don't understand why, and I am not sure how to use it?

The error i'm getting is: 

Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed

ERROR 1: Could not find dataset corresponding to ov factor 512

 

Would appreciate some help routing me in the right direction.

 

Thanks!

 

 

 



_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Building pyramids with gdaladdo

bradh
Maybe 254 should have been 256...

On 17 Feb. 2018 19:36, Gil <[hidden email]> wrote:
My tiff file is 19968x29952 which I understand when calculated to the 512 level goes un-even, is there anything I can do to go that extra level?
I am converting to JPEG, it works well, I don't understand how I am reaching level 18 when the original has 17.
Conversion is done like this:

gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg
gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 254 512

I am going to display the geopackage with a custom web viewer, that works best when the upper level has only 1 tile.

Thanks.

On 17 February 2018 at 10:20, <[hidden email]> wrote:

Can you show exactly how you did the conversion and overviews, and the dimensions of the original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG, possibly you need to fill your TIFF.

 

The part about gpkg_zoom_other is telling you that what you are asking for can’t be done without breaking the power-of-two zoom level constraint.  What do you intend to do with your geopackage? The extensions that make sense will depend on the consumers of the file.

 

Brad

From: gdal-dev [mailto:[hidden email]] On Behalf Of Gil
Sent: Saturday, 17 February 2018 7:12 PM
To: [hidden email]
Subject: [gdal-dev] Building pyramids with gdaladdo

 

Hey,

 

I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.

I'd like to build it's pyramids till I reach a level with only 1 tile, I tried using gdaladdo, and when I built it with 2-256 factors, I got a result that has level 18-11 where level 11 has two tiles.

 

I got two problems, I don't understand how I got level 18 after building pyramids upwards?

And I'd like to reach one tile, so I tried using 512, however I get an error asking me to use gpkg_zoom_other, I don't understand why, and I am not sure how to use it?

The error i'm getting is: 

Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed

ERROR 1: Could not find dataset corresponding to ov factor 512

 

Would appreciate some help routing me in the right direction.

 

Thanks!

 

 

 




_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Building pyramids with gdaladdo

Gil-2
It’s just a typo in the mail, apologies. The result is the same. Any thoughts?

On Sat, 17 Feb 2018 at 12:39 Brad Hards <[hidden email]> wrote:
Maybe 254 should have been 256...

On 17 Feb. 2018 19:36, Gil <[hidden email]> wrote:
My tiff file is 19968x29952 which I understand when calculated to the 512 level goes un-even, is there anything I can do to go that extra level?
I am converting to JPEG, it works well, I don't understand how I am reaching level 18 when the original has 17.
Conversion is done like this:

gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg
gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 254 512

I am going to display the geopackage with a custom web viewer, that works best when the upper level has only 1 tile.

Thanks.

On 17 February 2018 at 10:20, <[hidden email]> wrote:

Can you show exactly how you did the conversion and overviews, and the dimensions of the original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG, possibly you need to fill your TIFF.

 

The part about gpkg_zoom_other is telling you that what you are asking for can’t be done without breaking the power-of-two zoom level constraint.  What do you intend to do with your geopackage? The extensions that make sense will depend on the consumers of the file.

 

Brad

From: gdal-dev [mailto:[hidden email]] On Behalf Of Gil
Sent: Saturday, 17 February 2018 7:12 PM
To: [hidden email]
Subject: [gdal-dev] Building pyramids with gdaladdo

 

Hey,

 

I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.

I'd like to build it's pyramids till I reach a level with only 1 tile, I tried using gdaladdo, and when I built it with 2-256 factors, I got a result that has level 18-11 where level 11 has two tiles.

 

I got two problems, I don't understand how I got level 18 after building pyramids upwards?

And I'd like to reach one tile, so I tried using 512, however I get an error asking me to use gpkg_zoom_other, I don't understand why, and I am not sure how to use it?

The error i'm getting is: 

Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed

ERROR 1: Could not find dataset corresponding to ov factor 512

 

Would appreciate some help routing me in the right direction.

 

Thanks!

 

 

 




_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Building pyramids with gdaladdo

Gil-2
In reply to this post by bradh
It’s just a typo in the mail, apologies. The result is the same. Any thoughts?

On Sat, 17 Feb 2018 at 12:39 Brad Hards <[hidden email]> wrote:
Maybe 254 should have been 256...

On 17 Feb. 2018 19:36, Gil <[hidden email]> wrote:
My tiff file is 19968x29952 which I understand when calculated to the 512 level goes un-even, is there anything I can do to go that extra level?
I am converting to JPEG, it works well, I don't understand how I am reaching level 18 when the original has 17.
Conversion is done like this:

gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg
gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 254 512

I am going to display the geopackage with a custom web viewer, that works best when the upper level has only 1 tile.

Thanks.

On 17 February 2018 at 10:20, <[hidden email]> wrote:

Can you show exactly how you did the conversion and overviews, and the dimensions of the original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG, possibly you need to fill your TIFF.

 

The part about gpkg_zoom_other is telling you that what you are asking for can’t be done without breaking the power-of-two zoom level constraint.  What do you intend to do with your geopackage? The extensions that make sense will depend on the consumers of the file.

 

Brad

From: gdal-dev [mailto:[hidden email]] On Behalf Of Gil
Sent: Saturday, 17 February 2018 7:12 PM
To: [hidden email]
Subject: [gdal-dev] Building pyramids with gdaladdo

 

Hey,

 

I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.

I'd like to build it's pyramids till I reach a level with only 1 tile, I tried using gdaladdo, and when I built it with 2-256 factors, I got a result that has level 18-11 where level 11 has two tiles.

 

I got two problems, I don't understand how I got level 18 after building pyramids upwards?

And I'd like to reach one tile, so I tried using 512, however I get an error asking me to use gpkg_zoom_other, I don't understand why, and I am not sure how to use it?

The error i'm getting is: 

Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed

ERROR 1: Could not find dataset corresponding to ov factor 512

 

Would appreciate some help routing me in the right direction.

 

Thanks!

 

 

 




_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Building pyramids with gdaladdo

Even Rouault-2
In reply to this post by Gil-2

Gil,

 

to be able to properly reproduce, could you paste the output of

 

gdalinfo myfile.tif

 

?

 

Even

 

> My tiff file is 19968x29952 which I understand when calculated to the 512

> level goes un-even, is there anything I can do to go that extra level?

I

> am converting to JPEG, it works well, I don't understand how I am reaching

> level 18 when the original has 17. Conversion is done like this:

>

> gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad

> -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg

> gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 254 512

> I am going to display the geopackage with a custom web viewer, that works

> best when the upper level has only 1 tile.

> Thanks.

>

> On 17 February 2018 at 10:20,

> <[hidden email]<mailto:[hidden email]>> wrote:

Can you show

> exactly how you did the conversion and overviews, and the dimensions of the

> original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG,

> possibly you need to fill your TIFF.

> The part about gpkg_zoom_other is telling you that what you are asking for

> can’t be done without breaking the power-of-two zoom level constraint.

> What do you intend to do with your geopackage? The extensions that make

> sense will depend on the consumers of the file.

> Brad

> From: gdal-dev> [mailto:[hidden email]<mailto:[hidden email]

> o.org>] On Behalf Of Gil

Sent: Saturday, 17 February 2018 7:12 PM

> To: [hidden email]<mailto:[hidden email]>

> Subject: [gdal-dev] Building pyramids with gdaladdo

>

> Hey,

>

> I got a gpkg file I converted from tiff using gdal_translate, it originally

> has level 17 tiles.

I'd like to build it's pyramids till I reach a level

> with only 1 tile, I tried using gdaladdo, and when I built it with 2-256

> factors, I got a result that has level 18-11 where level 11 has two tiles.

> I got two problems, I don't understand how I got level 18 after building

> pyramids upwards?

And I'd like to reach one tile, so I tried using 512,

> however I get an error asking me to use gpkg_zoom_other, I don't understand

> why, and I am not sure how to use it? The error i'm getting is:

> Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be

> needed

ERROR 1: Could not find dataset corresponding to ov factor 512

>

> Would appreciate some help routing me in the right direction.

>

> Thanks!

>

>

>

>

 

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev