Opened 3 years ago

Closed 3 years ago

#2474 closed defect (fixed)

Petascope - multipart/related WCS GetCoverage request missing binary part

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: petascope Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

The request from WCS with multipart only contains GML part, for example:

http://localhost:8080/rasdaman/ows?service=WCS&version=2.0.1&request=GetCoverage&coverageId=test_mr&format=tiff&mediaType=multipart/related

Meanwhile, it should return a result like below with GML at first part and Tiff file as second part:

--wcs
Content-Type: text/xml
Content-ID: wcs.xml

<?xml version="1.0" encoding="UTF-8"?>
<Coverages
     xmlns="http://www.opengis.net/wcs/1.1"
     xmlns:ows="http://www.opengis.net/ows"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.opengis.net/ows/1.1 ../owsCoverages.xsd">
  <Coverage>
    <Reference xlink:href="cid:coverage/out.tif"/>
  </Coverage>
</Coverages>
--wcs
Content-Type: image/tiff
Content-Description: coverage data
Content-Transfer-Encoding: binary
Content-ID: coverage/out.tif
Content-Disposition: INLINE
(a lot of binary data)--wcs--

Change History (1)

comment:1 by Bang Pham Huu, 3 years ago

Resolution: fixed
Status: assignedclosed

Seem to be fixed already with the output of http://localhost:8080/rasdaman/ows?service=WCS&version=2.0.1&request=GetCoverage&coverageId=test_mr&format=png&mediaType=multipart/related

 cat test_mr.png 

--End
Content-type: image/png

<?xml version="1.0" encoding="UTF-8"?>
<gmlcov:RectifiedGridCoverage gml:id="test_mr"
    xmlns:gml="http://www.opengis.net/gml/3.2"
    xmlns:gmlcov="http://www.opengis.net/gmlcov/1.0"
    xmlns:ows="http://www.opengis.net/ows/2.0"
    xmlns:rasdaman="http://www.rasdaman.org"
    xmlns:swe="http://www.opengis.net/swe/2.0"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="">
    <gml:boundedBy>
...

--End
Content-type: image/png

�PNG

�1��
n2Eڤl�H'V�TT�
�

--End--

Note: See TracTickets for help on using tickets.