Opened 11 years ago

Closed 10 years ago

#637 closed defect (fixed)

GML domainSet to be correctly updated on WCS scaling operations

Reported by: Piero Campalani Owned by: Piero Campalani
Priority: major Milestone: Future
Component: petascope Version: development
Keywords: scale grid envelope Cc:
Complexity: Medium

Description

Grid envelopes need to be properly synchronized with scaling operations.

E.g. scaling along an axis i with half the cardinality of the coverage along i will half the grid envelope (though not changing the bounding box).

WCS systemtests (n.9, n.10, n.11, n.12) are currently not valid responses.
E.g. for systemtest n.9 :

service=WCS&
version=2.0.1&
request=GetCoverage&
coverageId=mr&
scalefactor=2.0

..the oracle should look like:

  <boundedBy>
    <Envelope srsName="/crs/OGC/0/Index2D" axisLabels="i j" uomLabels="GridSpacing GridSpacing" srsDimension="2">
      <lowerCorner>0 0</lowerCorner>
      <upperCorner>255 210</upperCorner>
    </Envelope>
  </boundedBy>

  <domainSet>
    <RectifiedGrid dimension="2" id="mr-grid">
      <limits>
        <GridEnvelope>
          <low>0 0</low>
---       <high>255 210</high> 
+++       <high>127 105</high> 
...

Change History (3)

comment:1 by gxinghua, 11 years ago

1)Why not change the <boundedBy>? Since the returned Feature's bounding box is actually changed.

2)And the defect exists also in image/tiff response.

> gdalinfo scale2.0.tiff 
Driver: GTiff/GeoTIFF
Files: scale2.0.tiff
Size is 128, 106
Coordinate System is `'
Origin = (0.000000000000000,210.000000000000000)
Pixel Size = (1.992187500000000,-1.981132075471698)
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (       0.000,     210.000) 
Lower Left  (   0.0000000,   0.0000000) 
Upper Right (     255.000,     210.000) 
Lower Right (     255.000,       0.000) 
Center      (     127.500,     105.000) 
Band 1 Block=128x64 Type=Byte, ColorInterp=Gray
  NoData Value=0


> gdalinfo noscale.tiff 
Driver: GTiff/GeoTIFF
Files: noscale.tiff
Size is 256, 211
Coordinate System is `'
Origin = (0.000000000000000,210.000000000000000)
Pixel Size = (0.996093750000000,-0.995260663507109)
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (       0.000,     210.000) 
Lower Left  (   0.0000000,   0.0000000) 
Upper Right (     255.000,     210.000) 
Lower Right (     255.000,       0.000) 
Center      (     127.500,     105.000) 
Band 1 Block=256x32 Type=Byte, ColorInterp=Gray
  NoData Value=0

comment:2 by Piero Campalani, 11 years ago

Yes, BBOX in boundedBy too (see #769).

comment:3 by Piero Campalani, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in changeset:81d7fca.

The BBOX is not scaled, while the length of grid dimensions are: even though the Index CRS example is quite tricky, still the BBOX shall not be scaled on scaling operations: only the grid domain is.

Note: See TracTickets for help on using tickets.