Merge pull request #8747 from mfo/sentry/3627524241

correctif(cadastre): certaines parcelles cadastrales ne contiennent pas la surface.
This commit is contained in:
mfo 2023-03-07 13:50:23 +00:00 committed by GitHub
commit f9f17795c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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