[Geoserver-users] Gdal pyramid

Hi,

I’m trying to generate pyramidal levels, in order to solve this issue I’m using the following script:

gdal_retile.py -v -r bilinear -levels 5 -pyramidOnly -ps 2048 2048 -co “COMPRESS=JPEG” -targetDir onlypyramid ortho.tif

once I have uploaded the generated files on geoserver I try to inquire them through a wms service on Qgis, somehow it seems to be very slow, do you have any advice in order to get faster the procedure?

regards

Marco

Hi Marco,

···

2014-03-12 12:46 GMT+01:00 marco casella <mcasella03@anonymised.com.84…>:

Hi,

I’m trying to generate pyramidal levels, in order to solve this issue I’m using the following script:

gdal_retile.py -v -r bilinear -levels 5 -pyramidOnly -ps 2048 2048 -co “COMPRESS=JPEG” -targetDir onlypyramid ortho.tif

Try to look here: http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html

From what I can see you are not specifying the -co “TILED=YES”, try to add it and see if it’s better. Also, depending on the scale you are using to show the pyramid on QGis you could try to add more levels.

Mauro

Hi Mauro,

As you can see I have set 5 levels, any of them seems to have a fixed level of zoom. Can you explain how does it work, whats the gap between each level of zoom?

Regards

Marco

···

2014-03-12 12:46 GMT+01:00 marco casella <mcasella03@anonymised.com>:

Hi,

I’m trying to generate pyramidal levels, in order to solve this issue I’m using the following script:

gdal_retile.py -v -r bilinear -levels 5 -pyramidOnly -ps 2048 2048 -co “COMPRESS=JPEG” -targetDir onlypyramid ortho.tif

Try to look here: http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html

From what I can see you are not specifying the -co “TILED=YES”, try to add it and see if it’s better. Also, depending on the scale you are using to show the pyramid on QGis you could try to add more levels.

Mauro

Hi Marco,

···

2014-03-12 23:39 GMT+01:00 Marco Casella <mcasella03@anonymised.com…>:

Hi Mauro,

As you can see I have set 5 levels, any of them seems to have a fixed level of zoom. Can you explain how does it work, whats the gap between each level of zoom?

It’s quite simple, at each level a rescaling of the original image is performed halving pixels on both axis, so if you have an original image of 10000x10000 pixels, you get a 5000x5000 at level 2, 2500x2500 at level 3 and so on.
You usually need more levels if the original pixel size is high.
Note that using -co “TILED=YES” is very important.

Mauro

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Ciao Marco,
as mentioned in these slides:

http://goo.gl/74XUPq

I would not go with ImagePyramid unless the data you are trying to
serve is extremely big (like >> 30 GB). I would go back to using
bigtiff with overviews otherwise.
In any case, -ps 2048 2048 might be a bit too much for the single tiles.

Regards,
Simone Giannecchini

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Wed, Mar 12, 2014 at 1:55 PM, Mauro Bartolomeoli
<mauro.bartolomeoli@anonymised.com> wrote:

Hi Marco,

2014-03-12 12:46 GMT+01:00 marco casella <mcasella03@anonymised.com>:

Hi,

I'm trying to generate pyramidal levels, in order to solve this issue I'm
using the following script:

gdal_retile.py -v -r bilinear -levels 5 -pyramidOnly -ps 2048 2048 -co
"COMPRESS=JPEG" -targetDir onlypyramid ortho.tif

Try to look here:
http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html

From what I can see you are not specifying the -co "TILED=YES", try to add
it and see if it's better. Also, depending on the scale you are using to
show the pyramid on QGis you could try to add more levels.

Mauro

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

As far far concern the ps I have set 1024, most of the cases we have tif larger than 30gb so I think we are going to use pyramidal preview, for orhers I should dig in about bigtif with preview, I will take a look at that document. Thanks.

As last question, we have our active server with ubunto, once we have installed the pyramid plugin we cant upload the directory with the related images. I have created the piramidal levels with Gdal on win7 and then copied the folder on the server under ubunto. Pheraps I should create the images with Gdal on ubunto? Any advice is well accepted! Thanks

Sent from my iPhone

On 13/mar/2014, at 09:43, Simone Giannecchini <simone.giannecchini@anonymised.com..> wrote:

Ciao Marco,
as mentioned in these slides:

http://goo.gl/74XUPq

I would not go with ImagePyramid unless the data you are trying to
serve is extremely big (like >> 30 GB). I would go back to using
bigtiff with overviews otherwise.
In any case, -ps 2048 2048 might be a bit too much for the single tiles.

Regards,
Simone Giannecchini

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Wed, Mar 12, 2014 at 1:55 PM, Mauro Bartolomeoli
<mauro.bartolomeoli@anonymised.com> wrote:

Hi Marco,

2014-03-12 12:46 GMT+01:00 marco casella <mcasella03@anonymised.com>:

Hi,

I'm trying to generate pyramidal levels, in order to solve this issue I'm
using the following script:

gdal_retile.py -v -r bilinear -levels 5 -pyramidOnly -ps 2048 2048 -co
"COMPRESS=JPEG" -targetDir onlypyramid ortho.tif

Try to look here:
http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html

From what I can see you are not specifying the -co "TILED=YES", try to add
it and see if it's better. Also, depending on the scale you are using to
show the pyramid on QGis you could try to add more levels.

Mauro

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users