[Geoserver-users] GeoServer exception > "creating a new coverage with a geoTiff file"

Hi,

When I try to make a new coverage with a Geotiff file the geoserver show me this message:

============================================================

GeoServer - ExceptionThe following exception was thrown:

java.lang.UnsupportedOperationException: GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic & Projected Systems are supported.

============================================================

Anyone know the solution of this problem?

thanks

André Silva

Hello André,
could you provide us some more details related to your test?
Additional info really help developers when they need to investigate on problems :slight_smile:
As an instance, if it is possible, you could add a brief test case or, in your specific case, some more details on the geotiff sample you used.
Can you give me a link to your data sample? (or send it to me by email)
Finally, which version of GeoServer are you using?

Best Regards,
Daniele Romagnoli

On Thu, Mar 13, 2008 at 7:52 PM, André Silva <andredsilva@anonymised.com> wrote:

Hi,

When I try to make a new coverage with a Geotiff file the geoserver show me this message:

============================================================

GeoServer - ExceptionThe following exception was thrown:

java.lang.UnsupportedOperationException: GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic & Projected Systems are supported.

============================================================

Anyone know the solution of this problem?

thanks

André Silva


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267

http://www.geo-solutions.it


Hi

I exported the raster file to GeoTiff file with ArcMap. I do this with other raster and worked.

Running gdalinfo →
On linux:

Driver: GTiff/GeoTIFF
Size is 7356, 5164
Coordinate System is `’
Origin = (205917.522610576415900,7714821.430936027318239)
Pixel Size = (5.000000000000000,-5.000000000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 18:42:01EDT $
TIFFTAG_XRESOLUTION=1
TIFFTAG_YRESOLUTION=1
TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Corner Coordinates:
Upper Left ( 205917.523, 7714821.431)
Lower Left ( 205917.523, 7689001.431)
Upper Right ( 242697.523, 7714821.431)
Lower Right ( 242697.523, 7689001.431)
Center ( 224307.523, 7701911.431)
Band 1 Block=64x64 Type=Byte, ColorInterp=Gray
Overviews: 1839x1291, 920x646, 460x323, 230x162, 115x81, 58x41

On windows:

Driver: GTiff/GeoTIFF
Files: c:\andre\dir_esc\diresc1.tif
c:\andre\dir_esc\diresc1.aux
c:\andre\dir_esc\diresc1.rrd
Size is 7356, 5164
Coordinate System is:
PROJCS[“SAD_1969_UTM_Zone_23S”,
GEOGCS[“GCS_South_American_1969”,
DATUM[“South_American_1969”,
SPHEROID[“GRS_1967_Truncated”,6378160.0,298.25]],
PRIMEM[“Greenwich”,0.0],
UNIT[“Degree”,0.0174532925199433]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“False_Easting”,500000.0],
PARAMETER[“False_Northing”,10000000.0],
PARAMETER[“Central_Meridian”,-45.0],
PARAMETER[“Scale_Factor”,0.9996],
PARAMETER[“Latitude_Of_Origin”,0.0],
UNIT[“Meter”,1.0]]
Origin = (205917.522610576420000,7714821.430936027300000)
Pixel Size = (5.000000000000000,-5.000000000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 18:42:01
EDT $
TIFFTAG_XRESOLUTION=1
TIFFTAG_YRESOLUTION=1
TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 205917.523, 7714821.431)
Lower Left ( 205917.523, 7689001.431)
Upper Right ( 242697.523, 7714821.431)
Lower Right ( 242697.523, 7689001.431)
Center ( 224307.523, 7701911.431)
Band 1 Block=64x64 Type=Byte, ColorInterp=Gray
Min=1.000 Max=128.000
Minimum=1.000, Maximum=128.000, Mean=31.274, StdDev=39.253
Overviews: 1839x1291, 920x646, 460x323, 230x162, 115x81, 58x41
Metadata:
STATISTICS_MINIMUM=1
STATISTICS_MAXIMUM=128
STATISTICS_MEAN=31.273708613527
STATISTICS_MEDIAN=16
STATISTICS_MODE=64
STATISTICS_STDDEV=39.25334066027
LAYER_TYPE=athematic
STATISTICS_HISTOBINVALUES=2085627|1556380|2294766|1616891|2584024|1742487|25
98907|1675532|


Histogram
1
0


Value
0
0


2085627
1


1556380
2


2294766
4


1616891
8


2584024
16


1742487
32


2598907
64


1675532
128

================================================

I’m using version of GeoServer 1.6.2a.

I follow these steps to create a new coverage

1)Config->Data->CoverageStores->New
2) Selected the Tagged Image File Format with Geographic Information dataset option.
3) Entered in the Coverage Dataset ID field. Then hit New.
4) Entered the path of my Geotiff file and hit button
->Here the geoserver return me this exception

The following exception was thrown:
java.lang.UnsupportedOperationException: GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic & Projected Systems are supported.

I put on this link the Geotiff file

http://andresilva.890m.com/arquivos/dir_esc.zip

Regards
André
``


André Silva

André Silva ha scritto:

Hi

I exported the raster file to GeoTiff file with ArcMap. I do this with other raster and worked.

Running gdalinfo ->
On linux:

Driver: GTiff/GeoTIFF
Size is 7356, 5164
Coordinate System is `'

This is the reason, the GeoTiff does not have a coordinate system.
You can use gdal_translate -a_srs xxx to enforce one (and be sure
it is the right one). See gdal_translate --help for more info.

Cheers
Andrea

Hi,

The problem:
The following exception was thrown:
java.lang.UnsupportedOperationException: GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic & Projected Systems are supported.
``

The problem was solved using the tip of the Andrea. :slight_smile:
I follow these steps:

gdal_translate -a_srs .tif .tif

References:
http://www.gdal.org/gdal_translate.html
http://www.spatialreference.org/

Thanks all for help
Regards,

André