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}` 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.
+