Hi Andrea,
Thanks again...
I have tried 3 FWTools:
FWTools 1.2.3: Coordinate System is `'
FWTools 1.2.2: Coordinate System is `'
FWTools 1.1.3: Coordinate System is `'
Guess that pinpoints the problem then! I wonder why bitorrent gave me a
different ecw to you though.
Is there a place where someone has put the sliced up world in a pyramid form
of Tiffs already?
Thanks,
Tim
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Monday, March 26, 2007 9:05 AM
To: Tim Robertson
Cc: Geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Can someone please test this .tiff?
Tim Robertson ha scritto:
I am able to load in the .tiffs that ship with the examples, but not
from ones I have created from gdal_translate.
gdal_translate -of GTiff -projwin -3 56 -2 55
world-topo-bathy-200408-3x86400x43200.ecw fife.tiff was used to create
it - am I missing something trivial?
There's something fishy going on here. Look at the gdalinfo output
against the file you attacched:
gdalinfo fife.tiff
Driver: GTiff/GeoTIFF
Size is 240, 240
Coordinate System is `'
Origin = (-3.000000000002842,56.000000000000547)
Pixel Size = (0.004166666666667,-0.004166666666667)
Corner Coordinates:
Upper Left ( -3.0000000, 56.0000000)
Lower Left ( -3.0000000, 55.0000000)
Upper Right ( -2.0000000, 56.0000000)
Lower Right ( -2.0000000, 55.0000000)
Center ( -2.5000000, 55.5000000)
Band 1 Block=240x34 Type=Byte, ColorInterp=Red
Band 2 Block=240x34 Type=Byte, ColorInterp=Green
Band 3 Block=240x34 Type=Byte, ColorInterp=Blue
"Coordinate System is `'", that is, no CRS specified for that file!
The Geoserver geotiff driver won't load geotiffs without CRS information.
Now, I pasted exactly the same command as you agains my bluemarble
files downloaded from geotorrents, and run gdalinfo again.
gdalinfo fife.tiff
Driver: GTiff/GeoTIFF
Size is 240, 240
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.2572235630016,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (-3.000000000002842,56.000000000000547)
Pixel Size = (0.004166666666667,-0.004166666666667)
Metadata:
AREA_OR_POINT=Area
Corner Coordinates:
Upper Left ( -3.0000000, 56.0000000) ( 3d 0'0.00"W, 56d 0'0.00"N)
Lower Left ( -3.0000000, 55.0000000) ( 3d 0'0.00"W, 55d 0'0.00"N)
Upper Right ( -2.0000000, 56.0000000) ( 2d 0'0.00"W, 56d 0'0.00"N)
Lower Right ( -2.0000000, 55.0000000) ( 2d 0'0.00"W, 55d 0'0.00"N)
Center ( -2.5000000, 55.5000000) ( 2d30'0.00"W, 55d30'0.00"N)
Band 1 Block=240x34 Type=Byte, ColorInterp=Red
Band 2 Block=240x34 Type=Byte, ColorInterp=Green
Band 3 Block=240x34 Type=Byte, ColorInterp=Blue
Now, I'm wondering, how is it that my generated tiff has CRS info,
and yours doesn't? If you run gdalinfo against the ECW, do you get
CRS infos? I do.
Which version of fwtools are you running? On my PC:
gdalinfo --version
GDAL 1.4.0.0, FWTools 1.1.3, released 2007/01/04
Cheers
Andrea