correctif(cadastre): certaines parcelles cadastrales ne contiennent pas la surface. cf: cadastre : numero: 4120 commune: 73094 prefixe: 000 section: A à CREST VOLAND

This commit is contained in:
Martin 2023-03-07 10:24:19 +01:00 committed by mfo
parent 1eab329d3f
commit 2b99bbd836

View file

@ -199,11 +199,12 @@ class GeoArea < ApplicationRecord
end
def surface
if legacy_cadastre?
api_surface = if legacy_cadastre?
properties['surface_parcelle']
else
properties['contenance']
end
api_surface ? api_surface : area
end
def prefixe