diff --git a/web/client/plugins/longitudinalProfile/constants.js b/web/client/plugins/longitudinalProfile/constants.js index 796d5b3d0e..3483bae2f0 100644 --- a/web/client/plugins/longitudinalProfile/constants.js +++ b/web/client/plugins/longitudinalProfile/constants.js @@ -15,6 +15,7 @@ export const LONGITUDINAL_VECTOR_LAYER_ID_POINT = 'longitudinal_profile_tool_poi export const LONGITUDINAL_OWNER = 'LongitudinalTool'; export const FILE_TYPE_ALLOWED = [ "application/json", + "application/geo+json", "image/x-dxf", "image/vnd.dxf", "application/x-zip-compressed", diff --git a/web/client/plugins/longitudinalProfile/enhancers/processFile.js b/web/client/plugins/longitudinalProfile/enhancers/processFile.js index 54a09ce8d8..e9dbb36799 100644 --- a/web/client/plugins/longitudinalProfile/enhancers/processFile.js +++ b/web/client/plugins/longitudinalProfile/enhancers/processFile.js @@ -51,7 +51,7 @@ const readFile = (onWarnings) => (file) => { const projectionDefs = getConfigProp('projectionDefs') || []; const supportedProjections = (projectionDefs.length && projectionDefs.map(({code}) => code) || []).concat(["EPSG:4326", "EPSG:3857", "EPSG:900913"]); // [ ] change this to use filterCRSList - if (type === 'application/json') { + if (type === 'application/json' || type === 'application/geo+json') { return readJson(file).then(f => { const projection = get(f, 'map.projection') ?? parseURN(get(f, 'crs')); if (projection) {