Merge pull request #8747 from mfo/sentry/3627524241
correctif(cadastre): certaines parcelles cadastrales ne contiennent pas la surface.
This commit is contained in:
commit
f9f17795c5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue