Skip to content

Commit

Permalink
Fix - WPS - Convert the ROI geometry to WKT to download spatial filter (
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuren1 authored Sep 11, 2023
1 parent 43b4668 commit ab67bcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/client/epics/layerdownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

import Rx from 'rxjs';
import wk from 'wellknown';
import { get, find, findIndex, pick, toPairs, castArray } from 'lodash';
import { saveAs } from 'file-saver';
import { parseString } from 'xml2js';
Expand Down Expand Up @@ -332,8 +333,8 @@ export const startFeatureExportDownload = (action$, store) =>
ROI: cropToROI ? {
type: 'TEXT',
data: {
mimeType: 'application/json',
data: JSON.stringify(bboxToFeatureGeometry(mapBbox.bounds))
mimeType: 'application/wkt',
data: wk.stringify(bboxToFeatureGeometry(mapBbox.bounds))
}
} : undefined,
roiCRS: cropToROI ? (mapBbox.crs || 'EPSG:4326') : undefined,
Expand Down

0 comments on commit ab67bcb

Please sign in to comment.