Skip to content

Commit

Permalink
fix(importer): dont link parcel to removed addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD authored and jvandaal committed Jan 24, 2025
1 parent 98f7a86 commit 79c065c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ParcelRegistry.Consumer.Address/ConsumerAddressContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public IEnumerable<AddressConsumerItem> FindAddressesWithinGeometry(Geometry geo
var fixedGeometry = NetTopologySuite.Geometries.Utilities.GeometryFixer.Fix(geometry);

var containsResult = AddressConsumerItems
.Where(x => fixedGeometry.Contains(x.Position))
.Where(x => !x.IsRemoved && fixedGeometry.Contains(x.Position))
.ToList();

var touchesResult= AddressConsumerItems
.Where(x => x.Position.Touches(fixedGeometry))
.Where(x => !x.IsRemoved && x.Position.Touches(fixedGeometry))
.ToList();

return containsResult
Expand Down

0 comments on commit 79c065c

Please sign in to comment.