[Geoserver-users] WCS 1.0.0 bug?

Hi,

It is a bug. Could you create a ticket into https://jira.codehaus.org/browse/GEOS? I confirmed the behaviour with Geoserver 2.5.

-Jukka Rahkonen-

···

Nhan Vo wrote:

Hi list,

This seems to be a bug in WCS implementation.

I’ve installed Geoserver 2.5.1 totally new. Now if I send this request to the server I will receive an error:

http://192.168.0.102:8081/geoserver/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=nurc:Arc_Sample&CRS=EPSG:4326&BBOX=-180.0,-90.0,180.0,90.0&WIDTH=1200&HEIGHT=800&FORMAT=ARCGRID

The error in the reponse: Could not find encoder for output format ARCGRID

If I send this request I can fetch the data (exactly the same as above, the only difference is the camel case in ArcGrid):

http://192.168.0.102:8081/geoserver/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=nurc:Arc_Sample&CRS=EPSG:4326&BBOX=-180.0,-90.0,180.0,90.0&WIDTH=1200&HEIGHT=800&FORMAT=ArcGrid

“ARCGRID” is taken as is from the CoverageDescription response from Geoserver in the wcs:supportedFormats element.

I would appreciate it if someone could tell me a possible workaround.

Best regards,
Nhan

On Mon, Jun 16, 2014 at 4:04 PM, Rahkonen Jukka (Tike) <
jukka.rahkonen@anonymised.com> wrote:

Hi,

It is a bug. Could you create a ticket into
https://jira.codehaus.org/browse/GEOS? I confirmed the behaviour with
Geoserver 2.5.

I haven't checked, but is it really?
WCS 1.1 as far as I remember is supposed to work only with mime types,
ARCGRID is not.
The way it should be:
* ARCGRID is reported in wcs 1.0 capabilites document and it's usable in 1.0
* ARCGRID is not reported in wcs 1.1 and 2.0 capabilities document, and
it's not usable in those versions of the protocol

If we are violating the above then yes, there is a bug.

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Hi,

I'm not sure how things go with version 1.1 but I'm actually working with WCS 1.0.0, and this is the work flow:

1 - Fetch getCapabilities response, in which the supported data formats are /not /specified. We receive the names of the available coverage offerings in the response.

2. With a coverage name we can send a DescribeCoverage request and receive a CoverageDescription response. The supported formats are included in this response.

The "ARCGRID" I use is from the CoverageDescription response.

Just to be clear, my test was that I used the browser and sent these 2 requests to a newly install Geoserver 2.5.1 and one fails and one succeeds:

Failed:
http://192.168.0.102:8081/geoserver/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=nurc:Arc_Sample&CRS=EPSG:4326&BBOX=-180.0,-90.0,180.0,90.0&WIDTH=1200&HEIGHT=800&FORMAT=/*ARCGRID*/

Succeeded:
http://192.168.0.102:8081/geoserver/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=nurc:Arc_Sample&CRS=EPSG:4326&BBOX=-180.0,-90.0,180.0,90.0&WIDTH=1200&HEIGHT=800&FORMAT=*ArcGrid*

Best regards,
Nhan

On 6/16/2014 4:14 PM, Andrea Aime wrote:

On Mon, Jun 16, 2014 at 4:04 PM, Rahkonen Jukka (Tike) <jukka.rahkonen@anonymised.com <mailto:jukka.rahkonen@anonymised.com>> wrote:

    Hi,

    It is a bug. Could you create a ticket into
    https://jira.codehaus.org/browse/GEOS? I confirmed the behaviour
    with Geoserver 2.5.

I haven't checked, but is it really?
WCS 1.1 as far as I remember is supposed to work only with mime types, ARCGRID is not.
The way it should be:
* ARCGRID is reported in wcs 1.0 capabilites document and it's usable in 1.0
* ARCGRID is not reported in wcs 1.1 and 2.0 capabilities document, and it's not usable in those versions of the protocol

If we are violating the above then yes, there is a bug.

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

--

*Thanh-Trong-Nhan Vo*

smile consult GmbH
Vahrenwalder Straße 4
D-30165 Hannover

Tel:

0511/543617-46

Fax:

0511/543617-66

Mail:

nhanvo@anonymised.com <mailto:nhanvo@anonymised.com>

Internet:

http://www.smileconsult.de/&gt;

Geschäftsführer: Frank Sellerhoff •Peter Milbradt •Christoph Lippert
USt-IdNr.: DE208857046 •Amtsgericht Hannover HRB 58707

Grafik1.gif