#1410 closed defect (fixed)

Scaling extension should be applied after the projection extension

Reported by: mdumitru Owned by: bphamhuu
Priority: critical Milestone:
Component: petascope Version: development
Keywords: Cc: dmisev
Complexity: Medium


This request:,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 Changed 12 months ago by mdumitru

  • Component changed from undecided to petascope

comment:2 Changed 11 months ago by bphamhuu

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: " 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 Changed 11 months ago by bphamhuu

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 follow-up: Changed 11 months ago by dmisev

Please look at the standard.

comment:5 in reply to: ↑ 4 Changed 11 months ago by bphamhuu

Replying to dmisev:

Please look at the standard.

In the OGC, documentation, it does not give detail about this factor
Edit: in OGC also have a detail

Note A value of 1.0 leaves the coverage unscaled, a value between 0 and 1 scales down
 (reduces target domain), a value greater than 1 scales up (enlarges target domain).

so the current behavior in WCS is opposite.

Last edited 11 months ago by bphamhuu (previous) (diff)

comment:6 Changed 11 months ago by bphamhuu

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.