WCS 2.0.1 not returning same image as WCS 1.0.0

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

WCS 2.0.1 not returning same image as WCS 1.0.0

Moisan, Yves (EC)

Hi All,

 

On Ubuntu 18.04 with :

 

MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 

When I issue a GetCoverage in WCS 1.0.1 I get a 1635 X 1940 pixels GTiff image :

 

http://myserver?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=myCoverage&bbox=376509,4898728,377163,4899504&crs=EPSG:26918&resx=0.4&resy=0.4&FORMAT=image/tiff

 

The same request, only in 2.0.1 and with COVERAGEID instead of COVERAGE, I get :

 

msWCSGetCoverage20(): WCS server error. Raster size out of range, width and height of resulting coverage must be no more than MAXSIZE=4096.

 

How can that be ?  I’m specifying resx resy to the values pixels have in the image behind the service (and when I overlay the image I get back from the WCS 1.0.0 call it matches the original image pixel for pixel) so there can’t be interpolation going on here.  I’m surprised.

 

Thanx for pointers,

 

Yves

 

 


_______________________________________________
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 not returning same image as WCS 1.0.0

jratike80

Hi,

 

I recommend to read the WCS 2.0 core standard which does not support bbox, resx or resy anymore. Mapserver documentation shows also how to use SUBSET https://www.mapserver.org/ogc/wcs_server.html. If you need to change the pixel size then the document to read is the WCS Scaling extension standard https://portal.opengeospatial.org/files/12-039.

 

 

-Jukka Rahkonen-

 

Lähettäjä: mapserver-users <[hidden email]> Puolesta Moisan, Yves (NRCAN/RNCAN)
Lähetetty: keskiviikko 5. kesäkuuta 2019 21.05
Vastaanottaja: [hidden email]
Aihe: [mapserver-users] WCS 2.0.1 not returning same image as WCS 1.0.0

 

Hi All,

 

On Ubuntu 18.04 with :

 

MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 

When I issue a GetCoverage in WCS 1.0.1 I get a 1635 X 1940 pixels GTiff image :

 

http://myserver?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=myCoverage&bbox=376509,4898728,377163,4899504&crs=EPSG:26918&resx=0.4&resy=0.4&FORMAT=image/tiff

 

The same request, only in 2.0.1 and with COVERAGEID instead of COVERAGE, I get :

 

msWCSGetCoverage20(): WCS server error. Raster size out of range, width and height of resulting coverage must be no more than MAXSIZE=4096.

 

How can that be ?  I’m specifying resx resy to the values pixels have in the image behind the service (and when I overlay the image I get back from the WCS 1.0.0 call it matches the original image pixel for pixel) so there can’t be interpolation going on here.  I’m surprised.

 

Thanx for pointers,

 

Yves

 

 


_______________________________________________
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 not returning same image as WCS 1.0.0

Moisan, Yves (EC)
In reply to this post by Moisan, Yves (EC)

bbox=376509,4898728,377163,4899504 resx=0.4 resy=0.4 # WCS 1.0.0

 

become

 

SUBSET=x(376509,377163) SUBSET=y(4898728,4899504) RESOLUTION=x(0.4) RESOLUTION=y(0.4) # WCS 2.0.1

 


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