Unify #generate_qp with #generate_cadastre
This commit is contained in:
parent
a18af4e616
commit
22beb41240
4 changed files with 12 additions and 21 deletions
|
@ -8,15 +8,8 @@ class CARTO::SGMAP::QuartiersPrioritaires::Adapter
|
|||
end
|
||||
|
||||
def to_params
|
||||
params = {}
|
||||
|
||||
data_source[:features].each do |feature|
|
||||
qp_code = feature[:properties][:code]
|
||||
|
||||
params[qp_code] = feature[:properties]
|
||||
params[qp_code][:geometry] = feature[:geometry]
|
||||
data_source[:features].map do |feature|
|
||||
feature[:properties].merge({ geometry: feature[:geometry] })
|
||||
end
|
||||
|
||||
params
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue