Commit f082013c authored by Christine Plumejeaud's avatar Christine Plumejeaud
Browse files

Fixed the used of srid as a parameter for union SQL for vizsources (getSources())

parent daff6abf
...@@ -952,7 +952,7 @@ Examples : ...@@ -952,7 +952,7 @@ Examples :
print(fields_for_select) print(fields_for_select)
union_G5_1787_CRonly=f""" union_G5_1787_CRonly=f"""
ogc_fid, uhgs_id, {localizedDatabaseFieldNames} status, has_a_clerk, geonameid, amiraute as admiralty, province, shiparea , ST_AsGeoJSON(ST_Transform(geom,900913)) as point, 'G5' as source_suite, 1787 as pointcall_year, nb_conges_1787_inputdone as nb_conges_inputdone, nb_conges_1787_cr as nb_conges_cr, nb_sante_1787 as nb_conges_sante, nb_petitcabotage_1787 as nb_petitcabotage, null as nb_tonnage_filled, null as nb_homeport_filled, null as nb_product_filled, null as nb_birthplace_filled, null as nb_citizenship_filled, null as nb_flag_filled, null as good_sum_tonnage ogc_fid, uhgs_id, {localizedDatabaseFieldNames} status, has_a_clerk, geonameid, amiraute as admiralty, province, shiparea , ST_AsGeoJSON(ST_Transform(geom,{srid})) as point, 'G5' as source_suite, 1787 as pointcall_year, nb_conges_1787_inputdone as nb_conges_inputdone, nb_conges_1787_cr as nb_conges_cr, nb_sante_1787 as nb_conges_sante, nb_petitcabotage_1787 as nb_petitcabotage, null as nb_tonnage_filled, null as nb_homeport_filled, null as nb_product_filled, null as nb_birthplace_filled, null as nb_citizenship_filled, null as nb_flag_filled, null as good_sum_tonnage
""" """
union_G5_1787_CRonly=handleParams(union_G5_1787_CRonly) # ne garde que les champs demandés dans 'params' union_G5_1787_CRonly=handleParams(union_G5_1787_CRonly) # ne garde que les champs demandés dans 'params'
...@@ -961,7 +961,7 @@ Examples : ...@@ -961,7 +961,7 @@ Examples :
#print('########### union_missing ###############'+union_missing) #print('########### union_missing ###############'+union_missing)
union_G5_1789_CRonly=f""" union_G5_1789_CRonly=f"""
ogc_fid, uhgs_id, {localizedDatabaseFieldNames} status, has_a_clerk, geonameid, amiraute as admiralty, province, shiparea , ST_AsGeoJSON(ST_Transform(geom,900913)) as point, 'G5' as source_suite, 1789 as pointcall_year, nb_conges_1789_inputdone as nb_conges_inputdone, nb_conges_1789_cr as nb_conges_cr, nb_sante_1789 as nb_conges_sante, nb_petitcabotage_1789 as nb_petitcabotage, null as nb_tonnage_filled, null as nb_homeport_filled, null as nb_product_filled, null as nb_birthplace_filled, null as nb_citizenship_filled, null as nb_flag_filled, null as good_sum_tonnage ogc_fid, uhgs_id, {localizedDatabaseFieldNames} status, has_a_clerk, geonameid, amiraute as admiralty, province, shiparea , ST_AsGeoJSON(ST_Transform(geom,{srid})) as point, 'G5' as source_suite, 1789 as pointcall_year, nb_conges_1789_inputdone as nb_conges_inputdone, nb_conges_1789_cr as nb_conges_cr, nb_sante_1789 as nb_conges_sante, nb_petitcabotage_1789 as nb_petitcabotage, null as nb_tonnage_filled, null as nb_homeport_filled, null as nb_product_filled, null as nb_birthplace_filled, null as nb_citizenship_filled, null as nb_flag_filled, null as good_sum_tonnage
""" """
union_G5_1789_CRonly=handleParams(union_G5_1789_CRonly) # ne garde que les champs demandés dans 'params' union_G5_1789_CRonly=handleParams(union_G5_1789_CRonly) # ne garde que les champs demandés dans 'params'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment