[Geoserver-users] Generated ImageMosaic of NASA Bluemarble has gaps

Hi,

I tried to create NASA Bluemarble from 8 pieces of 21600x21600 JPEG images
that I downloaded from http://visibleearth.nasa.gov/view.php?id=74218. Below
are the steps that I used:

gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" world.200412.3x21600x21600.A1.jpg Bluemarble.A1.tif
gdal_translate -of VRT -a_srs EPSG:4326 -a_ullr -180.0 90.0 -90.0 0.0
Bluemarble.A1.tif Bluemarble.Geo.A1.tif
gdalwarp -t_srs EPSG:4326 Bluemarble.Geo.A1.tif tmp.tif
mv tmp.tif Bluemarble.Geo.A1.tif

I repeated the above steps for A1,B1,C1,D1,A2,B2,C2,D2.
Then use the following command the create a pyramid of all 8 GeoTiff images.
for file in *.tif; do
gdal_retile.py -v -r lanczos -levels 12 -ps 2048 2048 -co "TILED=YES" -co
"BLOCKXSIZE=512" -co "BLOCKYSIZE=512" -co "COMPRESS=DEFLATE"
-useDirForEachRow w -targetDir pyramid $file;
done

Not sure if the above steps are correct but the resulted image has gaps that
you can see from the attached "layerPreview" screenshot. I also attached a
screenshot that shows how the JPEG blue marble data are aligned. I hope
someone can tell me what I did wrong and show me the correct steps that can
be used to produce a correct blue marble image.

Many thanks in advance,
Best regards,
Tam
<http://osgeo-org.1560.x6.nabble.com/file/n5134778/layerpreview.jpg&gt;
<http://osgeo-org.1560.x6.nabble.com/file/n5134778/bluemarble-21600x21600.jpg&gt;

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Generated-ImageMosaic-of-NASA-Bluemarble-has-gaps-tp5134778.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Tam,
I am trying to understand what you did, but I believe you went way too far in terms of preprocessing.

I would do:

-1- gdal_translate -of GTiff -co “TILED=YES” -co “BLOCKXSIZE=512” -co
“BLOCKYSIZE=512” -a_srs EPSG:4326 -a_ullr -180.0 90.0 -90.0 0.0 world.200412.3x21600x21600.A1.jpg Bluemarble.A1.tif
-2- gdaladdo on each single tile
-3- use the ImageMosaic.

Let us know how it goes.

···

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 Sun, Apr 13, 2014 at 6:59 PM, tt5430 <tt9488@anonymised.com> wrote:

Hi,

I tried to create NASA Bluemarble from 8 pieces of 21600x21600 JPEG images
that I downloaded from http://visibleearth.nasa.gov/view.php?id=74218. Below
are the steps that I used:

gdal_translate -of GTiff -co “TILED=YES” -co “BLOCKXSIZE=512” -co
“BLOCKYSIZE=512” world.200412.3x21600x21600.A1.jpg Bluemarble.A1.tif
gdal_translate -of VRT -a_srs EPSG:4326 -a_ullr -180.0 90.0 -90.0 0.0
Bluemarble.A1.tif Bluemarble.Geo.A1.tif
gdalwarp -t_srs EPSG:4326 Bluemarble.Geo.A1.tif tmp.tif
mv tmp.tif Bluemarble.Geo.A1.tif

I repeated the above steps for A1,B1,C1,D1,A2,B2,C2,D2.
Then use the following command the create a pyramid of all 8 GeoTiff images.
for file in *.tif; do
gdal_retile.py -v -r lanczos -levels 12 -ps 2048 2048 -co “TILED=YES” -co
“BLOCKXSIZE=512” -co “BLOCKYSIZE=512” -co “COMPRESS=DEFLATE”
-useDirForEachRow w -targetDir pyramid $file;
done

Not sure if the above steps are correct but the resulted image has gaps that
you can see from the attached “layerPreview” screenshot. I also attached a
screenshot that shows how the JPEG blue marble data are aligned. I hope
someone can tell me what I did wrong and show me the correct steps that can
be used to produce a correct blue marble image.

Many thanks in advance,
Best regards,
Tam
<http://osgeo-org.1560.x6.nabble.com/file/n5134778/layerpreview.jpg>
<http://osgeo-org.1560.x6.nabble.com/file/n5134778/bluemarble-21600x21600.jpg>


View this message in context: http://osgeo-org.1560.x6.nabble.com/Generated-ImageMosaic-of-NASA-Bluemarble-has-gaps-tp5134778.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


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/NeoTech


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users