Skip to content

Commit da75f4f

Browse files
committed
HARMONY-1965: Add support of pixelSubset parameter in EDR routes.
1 parent 7faa6af commit da75f4f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

services/harmony/app/frontends/ogc-edr/get-data-common.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ export function getDataCommon(
4646

4747
operation.ignoreErrors = query.ignoreerrors === false ? false : true;
4848
operation.destinationUrl = query.destinationurl;
49+
50+
if (query.pixelsubset !== undefined) {
51+
operation.pixelSubset = query.pixelsubset;
52+
}
53+
4954
try {
5055
const subset = parseSubsetParams(wrap(query.subset));
5156
operation.dimensions = [];

services/harmony/test/ogc-api-edr/get-data-for-area.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('OGC API EDR - getEdrArea', function () {
5252
width: 1000,
5353
f: 'image/png',
5454
skipPreview: true,
55+
pixelSubset: true,
5556
// extend: 'lat,lon', TODO: HARMONY-1569 support extend
5657
};
5758

@@ -140,6 +141,10 @@ describe('OGC API EDR - getEdrArea', function () {
140141
expect(this.service.operation.outputFormat).to.equal('image/png');
141142
});
142143

144+
it('passes the pixelSubset parameter to the backend', function () {
145+
expect(this.service.operation.pixelSubset).to.be.true;
146+
});
147+
143148
// TODO: HARMONY-1569 support extend
144149
xit('passes the extend parameter to the backend', function () {
145150
expect(this.service.operation.extendDimensions).to.have.members(['lat', 'lon']);

0 commit comments

Comments
 (0)