[Geoserver-devel] WFS GetCoverage returns eml (related to GEOS-6688)

Hi all,

Yesterday I issued a pull request for issue GEOS-6688 and it works now with the test I provided this morning. However when issuing this query the returned file is a multipart .eml file as stated in “org/geoserver/wcs2_0/response/WCS20GetCoverageMultipartResponse.java:141”, but this file is ‘unusable’.

However using the store=true parameter, the file will be stored as the requested image/file format and it is downloadable and usable in GIS software.

If there are no objections I propose to request that GeoServer returns the appropiate image/file format that is requested with the GetCoverage request, like with the store=true parameter. But is there any reason to stick with .eml for this request?

I would love to hear more about this.

Kind regards,
Alex van den Hoogen


Geodan
Buitenhaven 27-A
5211 TP 's-Hertogenbosch (NL)

www.geodan.nl

On Thu, Sep 25, 2014 at 1:32 PM, Alex van den Hoogen | Geodan <
alex.van.den.hoogen@anonymised.com> wrote:

Hi all,

Yesterday I issued a pull request for issue GEOS-6688 and it works now
with the test I provided this morning. However when issuing this query the
returned file is a multipart .eml file as stated in
"org/geoserver/wcs2_0/response/WCS20GetCoverageMultipartResponse.java:141",
but this file is 'unusable'.

However using the store=true parameter, the file will be stored as the
requested image/file format and it is downloadable and usable in GIS
software.

If there are no objections I propose to request that GeoServer returns the
appropiate image/file format that is requested with the GetCoverage
request, like with the store=true parameter. But is there any reason to
stick with .eml for this request?

Spec conformance would be one :slight_smile:
The WCS 1.1 specification _demands_ that a mime multipart is returned, so
that cannot be changed, and store=true is the only way to get back a
sane-ish response (a xml that links to the actual file to be downloaded).

However the WCS 2.0 does not unless you ask for one, can we see the full
request you made?

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

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

Thanks for the quick response. If it’s a specification than it obviously cannot be changed. The request I did was:

http://localhost:8080/geoserver/wcs?SERVICE=WCS&VERSION=1.1.1&REQUEST=GetCoverage&IDENTIFIER=sf:ahn25m&FORMAT=geotiff&BOUNDINGBOX=150000,450000,151000,451000,urn:ogc:def:crs:EPSG::28992&RangeSubset=contents:cubic[bands[GRAY_INDEX]]

And the resulting eml file is openable and thus correct, but I cannot use it unfortunately. Anyway, thanks again for the quick response.

···

Met vriendelijke groet,
Alex van den Hoogen


Geodan
Buitenhaven 27-A
5211 TP 's-Hertogenbosch (NL)

T +31 (0)73 - 692 5149
E alex.van.den.hoogen@anonymised.com

www.geodan.nl | disclaimer

2014-09-25 13:58 GMT+02:00 Andrea Aime <andrea.aime@anonymised.com>:

On Thu, Sep 25, 2014 at 1:32 PM, Alex van den Hoogen | Geodan <alex.van.den.hoogen@anonymised.com> wrote:

Hi all,

Yesterday I issued a pull request for issue GEOS-6688 and it works now with the test I provided this morning. However when issuing this query the returned file is a multipart .eml file as stated in “org/geoserver/wcs2_0/response/WCS20GetCoverageMultipartResponse.java:141”, but this file is ‘unusable’.

However using the store=true parameter, the file will be stored as the requested image/file format and it is downloadable and usable in GIS software.

If there are no objections I propose to request that GeoServer returns the appropiate image/file format that is requested with the GetCoverage request, like with the store=true parameter. But is there any reason to stick with .eml for this request?

Spec conformance would be one :slight_smile:
The WCS 1.1 specification demands that a mime multipart is returned, so that cannot be changed, and store=true is the only way to get back a sane-ish response (a xml that links to the actual file to be downloaded).

However the WCS 2.0 does not unless you ask for one, can we see the full request you made?

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


On Thu, Sep 25, 2014 at 2:19 PM, Alex van den Hoogen | Geodan <
alex.van.den.hoogen@anonymised.com> wrote:

Thanks for the quick response. If it's a specification than it obviously
cannot be changed. The request I did was:

http://localhost:8080/geoserver/wcs?SERVICE=WCS&VERSION=1.1.1&REQUEST=GetCoverage&IDENTIFIER=sf:ahn25m&FORMAT=geotiff&BOUNDINGBOX=150000,450000,151000,451000,urn:ogc:def:crs:EPSG::28992&RangeSubset=contents:cubic[bands[GRAY_INDEX]]

And the resulting eml file is openable and thus correct, but I cannot use
it unfortunately. Anyway, thanks again for the quick response.

Yes, unfortunately that's the spec.
But you can use WCS 2.0, that will return raw files instead of eml ones.
The protocol is completely different,
but not hard to pick up, and actually more user friendly

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

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