init view
This commit is contained in:
parent
c1cba8f300
commit
27ec9050df
29
15_POLICE/v_infraction_rnn.py
Normal file
29
15_POLICE/v_infraction_rnn.py
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
|
|
||||||
|
sql = '''
|
||||||
|
SELECT
|
||||||
|
split_part(b.data_id,':',2)::uuid data_id,
|
||||||
|
"submitterName" digitiser,
|
||||||
|
autre_catego_sensi,
|
||||||
|
autre_type_sanct,
|
||||||
|
catego_controle,
|
||||||
|
catego_sensibil,
|
||||||
|
"Commentaire_remarque_nombre_de_tentes",
|
||||||
|
"Conformit_du_contr_le",
|
||||||
|
day "date",
|
||||||
|
"heure",
|
||||||
|
infract_nb,
|
||||||
|
nat_operation,
|
||||||
|
nature_pers,
|
||||||
|
nb_pers_control,
|
||||||
|
nb_pers_sensibil,
|
||||||
|
nb_verb,
|
||||||
|
nom_agent,
|
||||||
|
type_sanct,
|
||||||
|
"submissionDate" date_saisie,
|
||||||
|
"updatedAt" date_maj,
|
||||||
|
st_force2d(st_geomfromgeojson(replace(COALESCE(geom,point_carte),'\','')))::geometry(geometry, 4326) AS geom
|
||||||
|
|
||||||
|
FROM police.infraction_rnn_submissions_data AS b
|
||||||
|
'''
|
||||||
Loading…
x
Reference in New Issue
Block a user