WCS 2.0.1 sends multipart response for ascii grid format

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WCS 2.0.1 sends multipart response for ascii grid format

jratike80

Hi,

 

I have Mapserver 7.2.1 and outputformat defined as

 

OUTPUTFORMAT

NAME AAIGRID

DRIVER "GDAL/AAIGRID"

MIMETYPE "application/x-ascii-grid"

IMAGEMODE FLOAT32

EXTENSION "grd"

FORMATOPTION "SIGNIFICANT_DIGITS=5"

END

 

The WCS 2.0.1 GetCoverage request is sending the response as multipart.  The first part is the ASCII grid and it is followed by these two parts


--wcs

Content-Type: application/octet-stream

Content-Description: coverage data

Content-Transfer-Encoding: binary

Content-ID: coverage/out.grd.aux.xml

Content-Disposition: INLINE; filename=out.grd.aux.xml

 

<PAMDataset>

  <Metadata>

    <MDI key="TIFFTAG_RESOLUTIONUNIT">2</MDI>

    <MDI key="TIFFTAG_XRESOLUTION">72.000000</MDI>

    <MDI key="TIFFTAG_YRESOLUTION">72.000000</MDI>

  </Metadata>

</PAMDataset>

 

--wcs

Content-Type: application/octet-stream

Content-Description: coverage data

Content-Transfer-Encoding: binary

Content-ID: coverage/out.prj

Content-Disposition: INLINE; filename=out.prj

 

PROJCS["ETRS89_TM35FIN_E_N",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",27],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]

 

Is there a way to get rid of the last parts of the response?

 

-Jukka Rahkonen-


_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: WCS 2.0.1 sends multipart response for ascii grid format

jratike80

Hi,

 

I thought I could resolve the problem by setting

CONFIG “GDAL_PAM_ENABLED” “NO”

 

Unfortunately nothing changed.

 

-Jukka Rahkonen-

 

 

Lähettäjä: Rahkonen Jukka (MML)
Lähetetty: keskiviikko 8. toukokuuta 2019 18.53
Vastaanottaja: Mapserver-Users ([hidden email]) <[hidden email]>
Aihe: WCS 2.0.1 sends multipart response for ascii grid format

 

Hi,

 

I have Mapserver 7.2.1 and outputformat defined as

 

OUTPUTFORMAT

NAME AAIGRID

DRIVER "GDAL/AAIGRID"

MIMETYPE "application/x-ascii-grid"

IMAGEMODE FLOAT32

EXTENSION "grd"

FORMATOPTION "SIGNIFICANT_DIGITS=5"

END

 

The WCS 2.0.1 GetCoverage request is sending the response as multipart.  The first part is the ASCII grid and it is followed by these two parts


--wcs

Content-Type: application/octet-stream

Content-Description: coverage data

Content-Transfer-Encoding: binary

Content-ID: coverage/out.grd.aux.xml

Content-Disposition: INLINE; filename=out.grd.aux.xml

 

<PAMDataset>

  <Metadata>

    <MDI key="TIFFTAG_RESOLUTIONUNIT">2</MDI>

    <MDI key="TIFFTAG_XRESOLUTION">72.000000</MDI>

    <MDI key="TIFFTAG_YRESOLUTION">72.000000</MDI>

  </Metadata>

</PAMDataset>

 

--wcs

Content-Type: application/octet-stream

Content-Description: coverage data

Content-Transfer-Encoding: binary

Content-ID: coverage/out.prj

Content-Disposition: INLINE; filename=out.prj

 

PROJCS["ETRS89_TM35FIN_E_N",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",27],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]

 

Is there a way to get rid of the last parts of the response?

 

-Jukka Rahkonen-


_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users