[Fix #508]Api GeoJson: export cadastre
This commit is contained in:
parent
9f2338a70a
commit
f34546cf2a
4 changed files with 32 additions and 1 deletions
17
app/serializers/cadastre_serializer.rb
Normal file
17
app/serializers/cadastre_serializer.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
class CadastreSerializer < ActiveModel::Serializer
|
||||
attributes :value, :type_de_champ
|
||||
|
||||
def value
|
||||
object.geometry
|
||||
end
|
||||
|
||||
def type_de_champ
|
||||
{
|
||||
id: -1,
|
||||
libelle: 'cadastre',
|
||||
type_champ: 'cadastre',
|
||||
order_place: -1,
|
||||
descripton: ''
|
||||
}
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue