Hi List,
I'm in trouble with GeoTiff raster files. I just can't load them as a datasource. I followed the procedure described at http://docs.codehaus.org/display/GEOSDOC/GeoTIFF but at step 5 (i.e. when the web interface actually load the tiff file onto the server), I get this error :
"Invalid url: 'file:/home/gba/data/europe/france/srtm30/relief-france.27572.tif' for format type:'GeoTIFF'.
I tried to rename my file to srtm30.tif to be sure to avoid invalid filename. I also tried to change the prefix to 'file:///' or to remove it. No matter I can do, I still have this error.
My file seems to be valid as I can read it with several other gis tools (Mapserver, Mapnik, Grass, QGIS). Moreover, I tried with another geotiff file and I had the same issue. Here are more information about my raster :
$ gdalinfo /home/gba/data/europe/france/srtm30/relief-france.27572.tif
Driver: GTiff/GeoTIFF
Size is 19299, 16739
Coordinate System is `'
Origin = (-115298.656730470014736,2819992.350648520048708)
Pixel Size = (79.999157123686729,-80.000530599157059)
Image Structure Metadata:
COMPRESSION=DEFLATE
Corner Coordinates:
Upper Left ( -115298.657, 2819992.351)
Lower Left ( -115298.657, 1480863.469)
Upper Right ( 1428605.077, 2819992.351)
Lower Right ( 1428605.077, 1480863.469)
Center ( 656653.210, 2150427.910)
Band 1 Block=19299x1 Type=Byte, ColorInterp=Red
Band 2 Block=19299x1 Type=Byte, ColorInterp=Green
Band 3 Block=19299x1 Type=Byte, ColorInterp=Blue
$ tiffinfo /home/gba/data/europe/france/srtm30/relief-france.27572.tif
TIFF Directory at offset 0xb441ca6 (189013158)
Image Width: 19299 Image Length: 16739
Bits/Sample: 8
Compression Scheme: Deflate
Photometric Interpretation: RGB color
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 3
Rows/Strip: 1
Planar Configuration: single image plane
Finally, I tried to load the file as "a raster file accompanied by a spatial data file" and it worked. Except that I got a blank output when I tried to display it... Could be a problem with SRS settings but I'd like to know more about this weird 'Invalid URL' before to investigate further on.
Any hints ?
--
Gilles Bassiere
MAKINA CORPUS
30 rue des Jeuneurs
FR-75011 PARIS
http://www.makina-corpus.com