Hi all, I am trying the following WCS (1.1.1) getCoverage request on Geoserver 2.1.1, but the image returned is always rotated and has wrong coordinates written inside the GeoTIFF
Request: http://localhost:8080/geoserver/ows? service=WCS& version=1.1.1& request=getCoverage& Format=image/tiff;subtype=%22GeoTIFF%22& BoundingBox=45.0,50.0,90.0,180.0,urn:ogc:def:crs:EPSG::4326& Identifier=sbsc:MOD11C3.A2000061.005.2006273174935_MODIS_MONTHLY_0.05DEG_CMG_LST_day& store=true gdalinfo of the original GeoTIFF file (the file Geoserver refers to) says: Driver: GTiff/GeoTIFF Files: D:\geoserver\geoserver-2.1.1\data_dir\data\sibessc\external\MODIS\MOD11C3\daytime\2000\MOD11C3.A2000061.005.2006273174935_MODIS_MONTHLY_0.05DEG_CMG_LST_day.tif Size is 2601, 901 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (49.993059991666428,89.974999999999994) Pixel Size = (0.049993056519928,-0.049986114967936) Metadata: TIFFTAG_SOFTWARE=HEG-Modis Reprojection Tool Nov 4, 2004 AREA_OR_POINT=Point Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 49.9930600, 89.9750000) ( 49d59'35.02"E, 89d58'30.00"N) Lower Left ( 49.9930600, 44.9375104) ( 49d59'35.02"E, 44d56'15.04"N) Upper Right ( 180.0250000, 89.9750000) (180d 1'30.00"E, 89d58'30.00"N) Lower Right ( 180.0250000, 44.9375104) (180d 1'30.00"E, 44d56'15.04"N) Center ( 115.0090300, 67.4562552) (115d 0'32.51"E, 67d27'22.52"N) Band 1 Block=256x256 Type=UInt16, ColorInterp=Gray Overviews: 1301x451, 651x226, 326x113 gdalinfo of the file returned by Geoserver: Driver: GTiff/GeoTIFF Files: D:\geoserver\geoserver-2.1.1\data_dir\temp\wcs\MOD11C3.A2000061.005.2006273174935_MODIS_MONTHLY_0.05DEG_CMG_LST_day_31349115191078.tif Size is 900, 2601 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (45.000000000000000,180.000000000000030) Pixel Size = (0.049999992286093,-0.049980776624375) Metadata: TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) AREA_OR_POINT=Area Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=BAND Corner Coordinates: Upper Left ( 45.000, 180.000) ( 45d 0'0.00"E,180d 0'0.00"N) Lower Left ( 45.0000000, 50.0000000) ( 45d 0'0.00"E, 50d 0'0.00"N) Upper Right ( 90.000, 180.000) ( 89d59'59.98"E,180d 0'0.00"N) Lower Right ( 89.9999931, 50.0000000) ( 89d59'59.98"E, 50d 0'0.00"N) Center ( 67.500, 115.000) ( 67d29'59.99"E,115d 0'0.00"N) Band 1 Block=256x256 Type=UInt16, ColorInterp=Gray For some reason the image dimensions are changed from 2601,900 to 900,2601 and some corner coordinates have got 180deg North, which obviously cannot be correct. I am aware that the bounding box should be lat/long encoded for urn:ogc:def:crs:EPSG::4326. I've also tried all different combinations of additional parameters (GridBaseCRS, GridType, GridCS, GridOrigin, GridOffsets) according to the WCS standard (OGC 07-067r2, Annex F) without success. Is there any other way to tweak the output returned by Geoserver? BTW: The corresponding WMS request returns the correct image. Many thanks in advance, Roman
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
