Hi again Jukka,

- gdalinfo report of one of the originals 

See the attached .txt file


- the nature of images (aerial/satellite images or raster maps)

Aerial images.


- the exact gdal commands you have been using

gdal_translate -a_srs "EPSG:3011" in.tif out.tif


gdal_translate -co compress=deflate -co predictor=1 -co "TILED=YES" -co 
"BLOCKXSIZE=512" -co "BLOCKYSIZE=512"  in.tif out.tif


gdaladdo -r average file.tif 2 4 8 16 32

gdal_merge.py -v -o mosaic.tif -of GTiff --optfile tiff_list.txt

Thank you for your help.

Regards,
Ammar


________________________________
 From: Rahkonen Jukka <[email protected]>
To: "[email protected]" 
<[email protected]> 
Sent: Friday, December 6, 2013 2:04 PM
Subject: Re: [Geoserver-users] Tips on serving Orthophotos as ImageMosaic
 

Hi,

Show us
- gdalinfo report of one of the originals
- the nature of images (aerial/satellite images or raster maps)
- the exact gdal commands you have been using

It seems that you are using same kind of work flow that you presented in your 
question in gdal-dev mailing list and you repeat the same error as well. 
Gdal_merge does not honour the work you have done in previous steps with tiles, 
compression and overviews. It creates a new bigtiff file for use and if you use 
the defaults the result will be uncompressed tiff without inner tiling.

-Jukka Rahkonen-


________________________________
Ammar wrote:

Hello list,

I have 20,000 of TIFF+TFW files that I want to serve in GeoServer 2.4.1 as WMS. 
I have followed the GeoServer on 
Steroids<http://elogeo.nottingham.ac.uk/xmlui/bitstream/handle/url/226/gs_steroids_sgiannec_foss4g2013_01.03.pdf?sequence=1>
 notes and I did the following:


1. Added projection using gdal_translate
2. Added inner-tiles (512 x 512) using gdal_translate
3. Added overviews (2 4 8 16 32) using gdal_addo
4. Compressed the dataset with LZW method using gdal_translate
5. Created one big GeoTIFF file using gdal_merge.py

I have tested the above on a small set of 150 TIFFs and the result was one big 
GeoTIFF of 10.8 GB size. I have 10,000 TIFFs and this way I will end up with 
roughly 100 GeoTIFF files having a size of 10GB each which is far more than the 
original size of all the TIFF files!

I have a couple of questions:

1. What compression method do you recommend? (I am currently testing with LZW 
predictor=1, LZW predictor=2, Deflate predictor=1 and Deflate predictor=2).
2. Are the overviews enough? Do I need to generate more overviews? (e.g 64 128)
3. What resampling algorithms are most recommended? Where can I read about 
resampling algorithms?
4.
5. Any tips or recommendations?

Best regards,
//Ammar

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
 gdalinfo 6585600_198200.tif

Driver: GTiff/GeoTIFF
Files: 6585600_198200.tif
       6585600_198200.tfw
Size is 4000, 4000
Coordinate System is `'
Origin = (198200.000000000000000,6585800.000000000000000)
Pixel Size = (0.050000000000000,-0.050000000000000)
Metadata:
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_XRESOLUTION=96
  TIFFTAG_YRESOLUTION=96
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  198200.000, 6585800.000) 
Lower Left  (  198200.000, 6585600.000) 
Upper Right (  198400.000, 6585800.000) 
Lower Right (  198400.000, 6585600.000) 
Center      (  198300.000, 6585700.000) 
Band 1 Block=4000x1 Type=Byte, ColorInterp=Red
Band 2 Block=4000x1 Type=Byte, ColorInterp=Green
Band 3 Block=4000x1 Type=Byte, ColorInterp=Blue
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to