Hi all,

I need to add raster layer to the GeoServer. Application uses custom PROJCS
with self defined EPSG code. I am preparing image with help of Global Mapper
v12, but I suppose it save GeoTIFF with some errors in SRS, so I manually
change it with the following command:

gdal_translate -strict -a_srs projection.prj foo.tif bar.tif

After that I am trying to add this file as a store to the GeoServer but I'm
bumping into the following error:
'Could not list layers for this store, an error occurred retrieving them:
Unable to acquire a reader for this coverage with format: GeoTIFF'

In logs there is the following:
...
Caused by: java.lang.UnsupportedOperationException:
GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic &
Projected Systems are supported.
        at
org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffMetadata2CRSAdapter.createCoordinateSystem(GeoTiffMetadata2CRSAdapter.java:241)
        at
org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:279)
        ... 141 more
20 May 06:02:25 INFO [org.geoserver.web] - Getting list of coverages for
saved store file:coverages/QB_004-001/QB_004-001.tif
java.lang.RuntimeException: Could not list layers for this store, an error
occurred retrieving them: Unable to acquire a reader for this coverage with
format: G
eoTIFF
...

I have tried replace SRS definition in Geotiff file by others. When I use
something standard, the geotif file adds successfully to the server, but
then I have problems with coordinates.

So, how can I add my geotiff file with custom SRS (and custom EPSG code)?
Please help.

Regards,
Serge Markin
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to