Opened 8 years ago

Closed 8 years ago

#1410 closed defect (fixed)

Scaling extension should be applied after the projection extension

Reported by: Alex Dumitru Owned by: Bang Pham Huu
Priority: critical Milestone:
Component: petascope Version: development
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

This request:

http://138.201.18.85/tb12/rasdaman/ows?request=GetCoverage&service=WCS&version=2.0.1&coverageId=SFTest&subset=E,http://www.opengis.net/def/crs/EPSG/0/32610(543400,544100)&subset=N,http://www.opengis.net/def/crs/EPSG/0/32610(4175600,4176100)&format=image/tiff&outputcrs=http://www.opengis.net/def/crs/EPSG/0/32610&SCALESIZE=E(950),N(833)

fails with

Error converting WCPS query to rasql query: Grid coverages are not supported in CRS reprojections.

I am assuming the rasql query that is generated is project(scale(..)..). It should be scale(project(..), ..)

Change History (6)

comment:1 by Alex Dumitru, 8 years ago

Component: undecidedpetascope

comment:2 by Bang Pham Huu, 8 years ago

The WCPS query

  "for c in (test_sf) return encode( 
   crsTransform( scale(trim(trim(c,
  {N:"http://localhost:8080/def/crs/EPSG/0/32610" (4175600:4176100)}),
  {E:"http://localhost:8080/def/crs/EPSG/0/32610" (543400:544100)}), 
    {E:"CRS:1"(22:971),N:"CRS:1"(125:957)}), 
     { E: " http://www.opengis.net/def/crs/EPSG/0/32610 ", 
       N: " http://www.opengis.net/def/crs/EPSG/0/32610 "  }, {} ), "tiff")"

so it should transform() before scale() as Alex's idea.

comment:3 by Bang Pham Huu, 8 years ago

btw, I have a question with scale

if (&scalefactor=20.0) then the output size is bigger as 20 times or lower as 20 times ? current it is lower.

e.g: coverage size (200 x 200) then with scalefactor, output is 10x10.

comment:4 by Dimitar Misev, 8 years ago

Please look at the standard.

in reply to:  4 comment:5 by Bang Pham Huu, 8 years ago

Replying to dmisev:

Please look at the standard.

In the OGC, documentation, it does not give detail about this factor

scaleFactor Scale factor to be applied to all coverage axes float zero or one (optional)

so I read from MapServer and I think it is more natural ( scalefactor > 1 will return bigger coverage) http://mapserver.org/de/ogc/wcs_server.html#wcs-2-0-kvp-request-parameters

SCALEFACTOR=factor: With this parameter (a positive float) 
the size of the output image can be adjusted. All axes are scaled equally.
Version 0, edited 8 years ago by Bang Pham Huu (next)

comment:6 by Bang Pham Huu, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.