Fix import flow for more advanced scenarios

This commit is contained in:
Pieter Vander Vennet 2022-01-22 02:56:35 +01:00
parent 913dc07eea
commit 700b48f693
18 changed files with 871 additions and 575 deletions

View file

@ -7,9 +7,11 @@ export class ImportUtils {
if (osmData?.features === undefined) {
return undefined
}
if(osmData.features.length === 0){
return {noNearby: toPartitionFeatureCollection.features, hasNearby: []}
}
const maxDist = cutoffDistanceInMeters.data
const hasNearby = []
const noNearby = []
for (const toImportElement of toPartitionFeatureCollection.features) {