davidvlaminck / AWVInfraPostGISSyncer

0 stars 1 forks source link

Bugfix: geometrie update van legacy data #5

Open VerdoodtDries opened 3 months ago

VerdoodtDries commented 3 months ago

De update van geometrie, werkt voor OTL-assets, maar niet voor Legacy-assets. De geometrie van OTL wordt bewaard in de tabel geometrie, terwijl de geometrie voor LGC wordt bewaard in de tabel locatie.

De bug is vermoedelijk gelinkt aan de functie perform_locatie_update_with_values. Voorbeeld: 6bb5909b-f33e-4d88-ae91-fe58a2be70df

VerdoodtDries commented 1 month ago

This code is a good test to check if the geometry has been updated.

-- ebe7a86d-1710-49bd-add7-2198abdafff0
select
    a.*
    , g.wkt_string 
    , l.geometrie 
from assets a
left join geometrie g on a."uuid" = g.assetuuid 
left join locatie l on a."uuid" = l.assetuuid 
where a."uuid" = 'ebe7a86d-1710-49bd-add7-2198abdafff0'