Andrea, once again thanks a lot!

Reprojection was the hint I needed.
So for the record, here is the minimal request that finally worked in my
case (GS 2.1.1 & GS 2.0.2):

http://localhost:8080/geoserver/ows?
service=WCS&
version=1.1.1&
request=getCoverage&
format=image/tiff;subtype="geotiff"&
BoundingBox=50,45,180.0,90.0,urn:ogc:def:crs:OGC:1.3:CRS84&Identifier=sbsc:MOD11C3.A2000061.005.2006273174935_MODIS_MONTHLY_0.05DEG_CMG_LST_day&
GridBaseCRS=EPSG:4326&
store=true

Notes:
- the BoundingBox is encoded in lon/lat (that order!) and refers to
"urn:ogc:def:crs:OGC:1.3:CRS84" instead of "urn:ogc:def:crs:EPSG::
4326"
- GridBaseCRS needs to be specified as "EPSG:4326"
- in the layer settings of Geoserver I added "EPSG:4326" to the Request &
Response SRS, which adds the following two entries to the list of "Supported
CRS"

DescribeCoverage response snippet:
...
<wcs:SupportedCRS>urn:ogc:def:crs:EPSG::4326</wcs:SupportedCRS>
<wcs:SupportedCRS>EPSG:4326</wcs:SupportedCRS>
...

Cheers,
Roman




On Tue, Aug 9, 2011 at 7:21 PM, Andrea Aime <[email protected]>wrote:

> On Tue, Aug 9, 2011 at 6:28 PM, Roman Gerlach <[email protected]>
> wrote:
> > 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
>
> Flipped axis is the expected result if you query WCS 1.1 with a raster
> on geographic data.
> If you don't want them flipped ask the coverage to be reprojected to
> EPSG:4326 instead of
> urn:ogc:def:crs:EPSG::4326
>
> See the "axis flipping issue" which we describe in the guide for WFS,
> it's the same for WCS 1.1:
>
> http://docs.geoserver.org/latest/en/user/services/wfs/basics.html#axis-ordering
>
> Cheers
> Andrea
>
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:      +39 0584 962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
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

Reply via email to