[Geoserver-users] Cannot Add A CoverageStore

Hi,
I am brand new to Geoserver and using Geoserver 1.7.4.

I am trying to add a CoverageStore for some raster imagery that I have
stored, originally in GeoTIFF format. I've made three attempts, each of
which has failed, and would like to know if anyone has any suggestions
on the best way to get this working.

********************************* 1st Attempt
**********************************************
My original effort was to load my GeoTiff images directly but I got the
following error:

"Invalid url: '/home/.../modis_data/Av.MaxNDVI.2000.2009.Week.16.tif'
for format type:'GeoTIFF'."

********************************* 2nd Attempt
**********************************************
I did some searching and found that somewhat had a similar problem that
was solved by running gdal_translate with the -a_srs option. So I did
this and created a new .tif (Av.MaxNDVI.2000.2009.Week.16_p.tif) file
and tried to load it, and I get the following error message:

class org.vfny.geoserver.global.ConfigurationException: Could not obtain
a reader for the CoverageDataSet. Please check the CoverageDataSet
configuration

Details:
org.vfny.geoserver.global.ConfigurationException: Could not obtain a
reader for the CoverageDataSet. Please check the CoverageDataSet
configuration!
  at
org.vfny.geoserver.action.data.DataCoveragesNewAction.newCoverageConfig(
DataCoveragesNewAction.java:102)
  at
org.vfny.geoserver.action.data.CoverageStoresEditorAction.execute(Covera
geStoresEditorAction.java:90)
  at
org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
  at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
  at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  ......so on and so forth

If it might prove helpful gdalinfo for my .tif file produces the
following:

gdalinfo -nogcp -nomd -noct Av.MaxNDVI.2000.2009.Week.16_p.tif

Driver: GTiff/GeoTIFF
Files: Av.MaxNDVI.2000.2009.Week.16_p.tif
Size is 28800, 9600
Coordinate System is:
LOCAL_CS["'User_Defined_Sinusoidal'",
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (-10007554.677000004798174,6671703.118001982569695)
Pixel Size = (231.656358263958310,-231.656358263958339)
Corner Coordinates:
Upper Left (-10007554.677, 6671703.118)
Lower Left (-10007554.677, 4447802.079)
Upper Right (-3335851.559, 6671703.118)
Lower Right (-3335851.559, 4447802.079)
Center (-6671703.118, 5559752.598)
Band 1 Block=28800x1 Type=Float32, ColorInterp=Gray

********************************* 3rd Attempt
**********************************************
Just out of frustration I also tried to convert my image to .PNG format
and add a worldfile (.tfw) and projectition file (Week16.png,
Week16.tfw, and Week16.prj). This attempted failed with the following
error:

"Invalid url: file:/home/..../modis_data/Week16.png' for format
type:'WorldImage'.

Any help would be appreciated:

Regards,
Craig Dillabaugh

Dillabough, Craig ha scritto:

If it might prove helpful gdalinfo for my .tif file produces the
following:

gdalinfo -nogcp -nomd -noct Av.MaxNDVI.2000.2009.Week.16_p.tif

Driver: GTiff/GeoTIFF
Files: Av.MaxNDVI.2000.2009.Week.16_p.tif
Size is 28800, 9600
Coordinate System is:
LOCAL_CS["'User_Defined_Sinusoidal'",
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (-10007554.677000004798174,6671703.118001982569695)
Pixel Size = (231.656358263958310,-231.656358263958339)
Corner Coordinates:
Upper Left (-10007554.677, 6671703.118)
Lower Left (-10007554.677, 4447802.079)
Upper Right (-3335851.559, 6671703.118)
Lower Right (-3335851.559, 4447802.079)
Center (-6671703.118, 5559752.598)
Band 1 Block=28800x1 Type=Float32, ColorInterp=Gray

I think we don't support any LOCAL_CS, that's why you cannot
load the GeoTiff. Try with a projected or geograhic CS and
it should load fine.
Mind, this file is very big and badly structured, in order
to get decent performance out of it use gdal_translate
to add inner tiling, and gdaladdo to add overviews.
Actually...hmmm... what is the size of the TIFF?
GeoServer does not support BIGTIFF images, so if the
file size goes beyond 2GB, it won't be opened anyways.

A way to support it would be to split it into tiles
and make a mosaic or a pyramid.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.