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:
parent
1eab329d3f
commit
2b99bbd836
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