From 3ca1a05c16e5e71bad8b02c53aba81fc7484f52f Mon Sep 17 00:00:00 2001 From: Roberto Fontanarosa Date: Mon, 25 May 2026 15:56:48 +0200 Subject: [PATCH 1/2] Add expected format to "Import GeoJSON" dialog --- .../import-dialog/import-dialog.component.html | 9 +++++++++ .../import-dialog/import-dialog.component.scss | 12 ++++++++++++ web/src/locale/messages.json | 1 + 3 files changed, 22 insertions(+) diff --git a/web/src/app/components/shared/import-dialog/import-dialog.component.html b/web/src/app/components/shared/import-dialog/import-dialog.component.html index 8a7655020..a9b62df13 100644 --- a/web/src/app/components/shared/import-dialog/import-dialog.component.html +++ b/web/src/app/components/shared/import-dialog/import-dialog.component.html @@ -33,6 +33,15 @@

>

+

+ Upload a GeoJSON FeatureCollection. Coordinates must use the + WGS84 (CRS84) coordinate reference system, the only projection currently + supported. Each feature's name property sets the site name, + and the feature's top-level id sets the site ID. +

Date: Mon, 25 May 2026 16:02:41 +0200 Subject: [PATCH 2/2] removed unused surveyId parameter from the signature --- functions/src/import-geojson.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/functions/src/import-geojson.ts b/functions/src/import-geojson.ts index 7816190ca..7b3d38240 100644 --- a/functions/src/import-geojson.ts +++ b/functions/src/import-geojson.ts @@ -101,7 +101,7 @@ export function importGeoJsonCallback( } }) .on('data', (data: any) => { - if (!hasError) onGeoJsonFeature(data, surveyId, jobId); + if (!hasError) onGeoJsonFeature(data, jobId); }) ); } catch (err) { @@ -187,11 +187,7 @@ export function importGeoJsonCallback( * GeoJSON Feature objects within the file. It checks the feature type, geometry * validity, and converts the feature to a document data format for insertion. */ - function onGeoJsonFeature( - geoJsonFeature: any, - surveyId: string, - jobId: string - ) { + function onGeoJsonFeature(geoJsonFeature: any, jobId: string) { if (geoJsonFeature.type !== 'Feature') { console.debug( `Skipping Feature with invalid type ${geoJsonFeature.type}`