Thanks for all your help again,
I now have
Driver: GTiff/GeoTIFF
Files: sh98.tif
Size is 4000, 4000
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
GEOGCS["OSGB 1936",
DATUM["OSGB_1936",
SPHEROID["Airy 1830",6377563.396,299.3249646000043,
AUTHORITY["EPSG","7001"]],
AUTHORITY["EPSG","6277"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4277"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",49],
PARAMETER["central_meridian",-2],
PARAMETER["scale_factor",0.9996012717],
PARAMETER["false_easting",400000],
PARAMETER["false_northing",-100000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","27700"]]
Origin = (290000.000000000000000,390000.000000000000000)
Pixel Size = (2.500000000000000,-2.500000000000000)
Metadata:
TIFFTAG_IMAGEDESCRIPTION=1:25000 TILE SH98
TIFFTAG_DATETIME=2006:09:12 16:00:12
TIFFTAG_COPYRIGHT=ORDNANCE SURVEY CROWN COPYRIGHT 2005
TIFFTAG_XRESOLUTION=254
TIFFTAG_YRESOLUTION=254
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=DEFLATE
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 290000.000, 390000.000) ( 3d39'16.05"W, 53d23'42.34"N)
Lower Left ( 290000.000, 380000.000) ( 3d39'3.53"W, 53d18'18.85"N)
Upper Right ( 300000.000, 390000.000) ( 3d30'14.80"W, 53d23'49.50"N)
Lower Right ( 300000.000, 380000.000) ( 3d30'3.42"W, 53d18'25.98"N)
Center ( 295000.000, 385000.000) ( 3d34'39.45"W, 53d21'4.25"N)
Band 1 Block=512x512 Type=Byte, ColorInterp=Palette
Overviews: 4000x4000, 2000x2000, 1000x1000, 500x500, 250x250, 125x125, 63x63,
32x32
Color Table (RGB with 256 entries)
0: 89,72,73,255
...
The while process I followed was
1) Took the raw TIF images
2) Added a .PRJ file for each image
3) Added the World file for each
4) Ran gdal_translate for each file
for file in `ls *tif`
do
gdal_translate -of GTiff -co "TILED=YES" -co "COMPRESS=DEFLATE" -co
"BLOCKXSIZE=512" -co "BLOCKYSIZE=512" -a_srs "EPSG:27700" $file out/$file
done
5) Ran a gdaladdo for each file in 'out'
for file in `ls *tif`
do
gdaladdo -r nearest $file 1 2 4 8 16 32 64 128
done
6) Added them to Geoserver (2.2 RC1) using ImageMosaic
Anything I have missed?
Russ
On 3 Aug 2012, at 09:24, Simone Giannecchini
<simone.giannecch...@geo-solutions.it> wrote:
> Ciao Russel,
> one thing, if you check the block size it is still not optimal as it
> is 4000x2 which means that your geotiff are saved on disk in stripes
> as large as the image itself but only 2 pixel tall.
> This is bad for performance as you'll end up reading much more data
> than needed for many requests.
> I would suggest to retile your geotiff images (with deflate
> compression) using a tile size (block size) of 256 or 512 pixels.
>
> Regards,
> Simone Giannecchini
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it 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 962313
> mob: +39 333 8128928
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users