diff --git a/src/MunicipalityRegistry.Api.Import/Geometries/GeometriesController.cs b/src/MunicipalityRegistry.Api.Import/Geometries/GeometriesController.cs index 66ea8df0..1d997dea 100644 --- a/src/MunicipalityRegistry.Api.Import/Geometries/GeometriesController.cs +++ b/src/MunicipalityRegistry.Api.Import/Geometries/GeometriesController.cs @@ -8,6 +8,7 @@ using Autofac; using Be.Vlaanderen.Basisregisters.Api; using Be.Vlaanderen.Basisregisters.CommandHandling.Idempotency; + using Be.Vlaanderen.Basisregisters.GrAr.Common; using Be.Vlaanderen.Basisregisters.GrAr.Provenance; using Infrastructure.Vrbg; using Microsoft.AspNetCore.Mvc; @@ -48,7 +49,10 @@ public async Task Update(CancellationToken cancellationToken = de { x.MunicipalityId, x.NisCode - }); + }) + .ToList() + .Where(x => RegionFilter.IsFlemishRegion(x.NisCode!)) + .ToList(); foreach (var municipality in municipalitiesToUpdate) { diff --git a/src/MunicipalityRegistry.GeometryImporter/Importer.cs b/src/MunicipalityRegistry.GeometryImporter/Importer.cs index 44684a3d..c2d7975f 100644 --- a/src/MunicipalityRegistry.GeometryImporter/Importer.cs +++ b/src/MunicipalityRegistry.GeometryImporter/Importer.cs @@ -9,16 +9,15 @@ using Projections.Integration; using Serilog; - public class Importer { private readonly XNamespace _vrbgNamespace = "https://geo.api.vlaanderen.be/VRBG2025"; private const string WFS_GetMunicipalityGeometry = - "https://geo.api.vlaanderen.be/VRBG/wfs?service=WFS" + + "https://geo.api.vlaanderen.be/VRBG2025/wfs?service=WFS" + "&version=1.1.0" + "&request=GetFeature" + - "&typeName=VRBG:Refgem" + + "&typeName=VRBG2025:Refgem" + "&maxFeatures=1" + "&srsName=EPSG:31370" + "&CQL_FILTER=NISCODE=";