From cd678ca20905abf78241ed3f20482b8ba215f753 Mon Sep 17 00:00:00 2001 From: antoineludeau <52679050+antoineludeau@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:56:55 +0200 Subject: [PATCH] Fix parcels split identificator --- data-mock/adresses-21286_cocorico.csv | 16 ++++++++-------- data-mock/adresses-21286_cocorico.json | 16 ++++++++-------- data-mock/adresses-21286_cocorico.partial.csv | 16 ++++++++-------- data-mock/adresses-21286_cocorico.partial.json | 8 ++++---- .../bal-json-legacy-to-bal-json.test.ts.snap | 8 ++++---- .../__snapshots__/bal-to-ban.test.ts.snap | 18 +++++++++--------- .../helpers/csv-bal-to-json-bal.ts | 2 +- 7 files changed, 42 insertions(+), 42 deletions(-) diff --git a/data-mock/adresses-21286_cocorico.csv b/data-mock/adresses-21286_cocorico.csv index 3c77266..22f066a 100644 --- a/data-mock/adresses-21286_cocorico.csv +++ b/data-mock/adresses-21286_cocorico.csv @@ -1,23 +1,23 @@ uid_adresse;cle_interop;commune_insee;commune_nom;commune_deleguee_insee;commune_deleguee_nom;voie_nom;lieudit_complement_nom;numero;suffixe;position;x;y;long;lat;cad_parcelles;source;date_der_maj;certification_commune -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157 @v:787ca7cf-8072-47ae-a8c6-98a62a8dd90c;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;entrée;558993.3;6853915.9;1.081243;48.769923;212860000C0115,212860000C0114;commune;2022-08-23T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157 @v:787ca7cf-8072-47ae-a8c6-98a62a8dd90c;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;logement;558987.26;6853954.53;1.081148;48.770269;212860000C0115,212860000C0114;commune;2022-08-23T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:d19b14c9-d9d0-478f-b741-c973d05c343f @v:787ca7cf-8072-47ae-a8c6-98a62a8dd90c;21286_2xdjog_00002;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;2;;entrée;559007.24;6853881.3;1.081444;48.769615;212860000C0237,212860000C0107;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157 @v:787ca7cf-8072-47ae-a8c6-98a62a8dd90c;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;entrée;558993.3;6853915.9;1.081243;48.769923;212860000C0115|212860000C0114;commune;2022-08-23T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157 @v:787ca7cf-8072-47ae-a8c6-98a62a8dd90c;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;logement;558987.26;6853954.53;1.081148;48.770269;212860000C0115|212860000C0114;commune;2022-08-23T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:d19b14c9-d9d0-478f-b741-c973d05c343f @v:787ca7cf-8072-47ae-a8c6-98a62a8dd90c;21286_2xdjog_00002;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;2;;entrée;559007.24;6853881.3;1.081444;48.769615;212860000C0237|212860000C0107;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:4afc82e4-694e-4bb3-81cb-0a32cd59a300 @v:7ce61747-d840-4019-97be-82dc0568619f;21286_mz58hg_00029;21286;Cocorico;;;Allée des Prodiges;;29;;entrée;559373.1;6854310.41;1.086279;48.773553;;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:18510122-0ad8-49fe-bbae-ca484d8f4e01 @v:7ce61747-d840-4019-97be-82dc0568619f;21286_mz58hg_00031;21286;Cocorico;;;Allée des Prodiges;Observatoire d’Hyrule;31;;entrée;559343.07;6854342.28;1.08586;48.773833;;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:29387aa3-1dc6-4e38-a1e9-aea350c91296 @v:7ce61747-d840-4019-97be-82dc0568619f;21286_mz58hg_00033;21286;Cocorico;;;Allée des Prodiges;;33;;entrée;559322.6;6854365.24;1.085574;48.774035;;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:577e9019-42bb-4965-b287-fe4cebe41038 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00001;21286;Cocorico;;;Route de la Baleine;;1;;entrée;559297.27;6853168.91;1.085624;48.763273;212860000D0113;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:61b54625-bef6-4450-95e1-b6f37d93441a @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00003;21286;Cocorico;;;Route de la Baleine;Relai d’Hylia;3;;entrée;559276.91;6853160.29;1.08535;48.763191;212860000D0113;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:28fd0d23-9f3a-4ac0-8e17-05f851546f34 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00005;21286;Cocorico;;;Route de la Baleine;;5;;entrée;559256.41;6853136.32;1.085079;48.762971;212860000D0305,212860000D0307,212860000D0308,212860000D0266;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:28fd0d23-9f3a-4ac0-8e17-05f851546f34 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00005;21286;Cocorico;;;Route de la Baleine;;5;;entrée;559256.41;6853136.32;1.085079;48.762971;212860000D0305|212860000D0307|212860000D0308|212860000D0266;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:7a9e11ff-31b6-4f14-8494-55369e7dce04 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00007;21286;Cocorico;;;Route de la Baleine;;7;;entrée;559214.93;6853102.73;1.084526;48.76266;212860000D0293;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:5139b74a-f569-4008-aade-3bb955186134 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00008;21286;Cocorico;;;Route de la Baleine;;8;;entrée;559099.72;6853078.95;1.082967;48.762421;21286000ZC0087;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:5114f638-f99d-4da2-b3ed-d2e2c3a32765 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00009;21286;Cocorico;;;Route de la Baleine;;9;;entrée;559109.09;6853074.16;1.083096;48.76238;212860000D0290,212860000D0292,212860000D0273,212860000D0288;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:2480fe76-bbd8-4703-a41a-5c43fd3c5891 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00010;21286;Cocorico;;;Route de la Baleine;;10;;entrée;559049.98;6853035;1.082305;48.762015;212860000D0053,212860000D0054;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:6edd2c77-e8db-4384-bbb6-810e868d4dee @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00003;21286;Cocorico;;;Chemin de la legende;;3;;entrée;559340.95;6852771.7;1.086349;48.759711;212860000D0304,212860000D0229;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:5114f638-f99d-4da2-b3ed-d2e2c3a32765 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00009;21286;Cocorico;;;Route de la Baleine;;9;;entrée;559109.09;6853074.16;1.083096;48.76238;212860000D0290|212860000D0292|212860000D0273|212860000D0288;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:2480fe76-bbd8-4703-a41a-5c43fd3c5891 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00010;21286;Cocorico;;;Route de la Baleine;;10;;entrée;559049.98;6853035;1.082305;48.762015;212860000D0053|212860000D0054;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:6edd2c77-e8db-4384-bbb6-810e868d4dee @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00003;21286;Cocorico;;;Chemin de la legende;;3;;entrée;559340.95;6852771.7;1.086349;48.759711;212860000D0304|212860000D0229;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:f1a28bf1-fac3-41f0-8cb4-3abc82b2b963 @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00005;21286;Cocorico;;;Chemin de la legende;;5;;entrée;559361.75;6852783.43;1.086628;48.759821;212860000D0230;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:1890569a-d05f-4cf9-b27b-9172c497023e @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00006;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;6;;entrée;559372.5;6852781.05;1.086775;48.759802;212860000D0237;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:e9de2ecf-e082-448b-9a21-fe9d38d017ae @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00007;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;7;;entrée;559387.66;6852802.93;1.086974;48.760002;212860000D0150;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:e6278261-1a1b-4606-9c20-a8f2d06738fa @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00008;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;8;;entrée;559412.4;6852816.45;1.087306;48.760129;212860000D0236;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:ff8bb658-3f73-4ac3-ab04-7966e869e991 @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00009;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;9;;entrée;559425.91;6852836.81;1.087483;48.760315;212860000D0148,212860000D0284;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:ff8bb658-3f73-4ac3-ab04-7966e869e991 @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00009;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;9;;entrée;559425.91;6852836.81;1.087483;48.760315;212860000D0148|212860000D0284;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:48691fd6-a611-4335-b346-a05679bcb31d @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00011;21286;Cocorico;;;Chemin de la legende;;11;;entrée;559461.28;6852855.2;1.087958;48.760488;212860000D0143;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:aeda3e20-8204-4d2b-8e59-184df887ae4e @v:c965715f-3874-4cba-ae4e-c9afa585f5eb;21286_0085_00001;21286;Cocorico;;;Impasse des lynels;Empreinte du Fleau;1;;entrée;558861.45;6854307.15;1.07932;48.773412;;commune;2022-08-23T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:aeda3e20-8204-4d2b-8e59-184df887ae4e @v:c965715f-3874-4cba-ae4e-c9afa585f5eb;21286_0085_00001;21286;Cocorico;;;Impasse des lynels;Empreinte du Fleau;1;;logement;558824.92;6854280.12;1.078832;48.773161;;commune;2022-08-23T00:00:00.000Z;true diff --git a/data-mock/adresses-21286_cocorico.json b/data-mock/adresses-21286_cocorico.json index 63b0f14..2f73540 100644 --- a/data-mock/adresses-21286_cocorico.json +++ b/data-mock/adresses-21286_cocorico.json @@ -15,7 +15,7 @@ "y": 6853915.9, "long": 1.081243, "lat": 48.769923, - "cad_parcelles": ["212860000C0115,212860000C0114"], + "cad_parcelles": ["212860000C0115|212860000C0114"], "source": "commune", "date_der_maj": "2022-08-23T00:00:00.000Z", "certification_commune": false @@ -36,7 +36,7 @@ "y": 6853954.53, "long": 1.081148, "lat": 48.770269, - "cad_parcelles": ["212860000C0115,212860000C0114"], + "cad_parcelles": ["212860000C0115|212860000C0114"], "source": "commune", "date_der_maj": "2022-08-23T00:00:00.000Z", "certification_commune": false @@ -57,7 +57,7 @@ "y": 6853881.3, "long": 1.081444, "lat": 48.769615, - "cad_parcelles": ["212860000C0237,212860000C0107"], + "cad_parcelles": ["212860000C0237|212860000C0107"], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", "certification_commune": false @@ -184,7 +184,7 @@ "long": 1.085079, "lat": 48.762971, "cad_parcelles": [ - "212860000D0305,212860000D0307,212860000D0308,212860000D0266" + "212860000D0305|212860000D0307|212860000D0308|212860000D0266" ], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", @@ -249,7 +249,7 @@ "long": 1.083096, "lat": 48.76238, "cad_parcelles": [ - "212860000D0290,212860000D0292,212860000D0273,212860000D0288" + "212860000D0290|212860000D0292|212860000D0273|212860000D0288" ], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", @@ -271,7 +271,7 @@ "y": 6853035, "long": 1.082305, "lat": 48.762015, - "cad_parcelles": ["212860000D0053,212860000D0054"], + "cad_parcelles": ["212860000D0053|212860000D0054"], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", "certification_commune": false @@ -292,7 +292,7 @@ "y": 6852771.7, "long": 1.086349, "lat": 48.759711, - "cad_parcelles": ["212860000D0304,212860000D0229"], + "cad_parcelles": ["212860000D0304|212860000D0229"], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", "certification_commune": false @@ -397,7 +397,7 @@ "y": 6852836.81, "long": 1.087483, "lat": 48.760315, - "cad_parcelles": ["212860000D0148,212860000D0284"], + "cad_parcelles": ["212860000D0148|212860000D0284"], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", "certification_commune": false diff --git a/data-mock/adresses-21286_cocorico.partial.csv b/data-mock/adresses-21286_cocorico.partial.csv index 7eba1d2..d508433 100644 --- a/data-mock/adresses-21286_cocorico.partial.csv +++ b/data-mock/adresses-21286_cocorico.partial.csv @@ -1,23 +1,23 @@ uid_adresse;cle_interop;commune_insee;commune_nom;commune_deleguee_insee;commune_deleguee_nom;voie_nom;lieudit_complement_nom;numero;suffixe;position;x;y;long;lat;cad_parcelles;source;date_der_maj;certification_commune -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;entrée;558993.3;6853915.9;1.081243;48.769923;212860000C0115,212860000C0114;commune;2022-08-23T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;logement;558987.26;6853954.53;1.081148;48.770269;212860000C0115,212860000C0114;commune;2022-08-23T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:d19b14c9-d9d0-478f-b741-c973d05c343f;21286_2xdjog_00002;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;2;;entrée;559007.24;6853881.3;1.081444;48.769615;212860000C0237,212860000C0107;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;entrée;558993.3;6853915.9;1.081243;48.769923;212860000C0115|212860000C0114;commune;2022-08-23T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:03fb190a-cf5b-4f48-a1ab-7caa4d10e157;21286_2xdjog_00001;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;1;;logement;558987.26;6853954.53;1.081148;48.770269;212860000C0115|212860000C0114;commune;2022-08-23T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:d19b14c9-d9d0-478f-b741-c973d05c343f;21286_2xdjog_00002;21286;Cocorico;;;Rue Rhoam Bosphoramus;La voie celeste;2;;entrée;559007.24;6853881.3;1.081444;48.769615;212860000C0237|212860000C0107;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:4afc82e4-694e-4bb3-81cb-0a32cd59a300;21286_mz58hg_00029;21286;Cocorico;;;Allée des Prodiges;;29;;entrée;559373.1;6854310.41;1.086279;48.773553;;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:18510122-0ad8-49fe-bbae-ca484d8f4e01;21286_mz58hg_00031;21286;Cocorico;;;Allée des Prodiges;Observatoire d’Hyrule;31;;entrée;559343.07;6854342.28;1.08586;48.773833;;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:29387aa3-1dc6-4e38-a1e9-aea350c91296 @v:aaaaaaaa-0000-4000-9000-ffffffffffff;21286_mz58hg_00033;21286;Cocorico;;;Allée des Prodiges;;33;;entrée;559322.6;6854365.24;1.085574;48.774035;;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:577e9019-42bb-4965-b287-fe4cebe41038 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00001;21286;Cocorico;;;Route de la Baleine;;1;;entrée;559297.27;6853168.91;1.085624;48.763273;212860000D0113;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:61b54625-bef6-4450-95e1-b6f37d93441a @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00003;21286;Cocorico;;;Route de la Baleine;Relai d’Hylia;3;;entrée;559276.91;6853160.29;1.08535;48.763191;212860000D0113;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:28fd0d23-9f3a-4ac0-8e17-05f851546f34 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00005;21286;Cocorico;;;Route de la Baleine;;5;;entrée;559256.41;6853136.32;1.085079;48.762971;212860000D0305,212860000D0307,212860000D0308,212860000D0266;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:28fd0d23-9f3a-4ac0-8e17-05f851546f34 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00005;21286;Cocorico;;;Route de la Baleine;;5;;entrée;559256.41;6853136.32;1.085079;48.762971;212860000D0305|212860000D0307|212860000D0308|212860000D0266;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:7a9e11ff-31b6-4f14-8494-55369e7dce04 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00007;21286;Cocorico;;;Route de la Baleine;;7;;entrée;559214.93;6853102.73;1.084526;48.76266;212860000D0293;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:5139b74a-f569-4008-aade-3bb955186134 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00008;21286;Cocorico;;;Route de la Baleine;;8;;entrée;559099.72;6853078.95;1.082967;48.762421;21286000ZC0087;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:5114f638-f99d-4da2-b3ed-d2e2c3a32765 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00009;21286;Cocorico;;;Route de la Baleine;;9;;entrée;559109.09;6853074.16;1.083096;48.76238;212860000D0290,212860000D0292,212860000D0273,212860000D0288;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:2480fe76-bbd8-4703-a41a-5c43fd3c5891 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00010;21286;Cocorico;;;Route de la Baleine;;10;;entrée;559049.98;6853035;1.082305;48.762015;212860000D0053,212860000D0054;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:6edd2c77-e8db-4384-bbb6-810e868d4dee @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00003;21286;Cocorico;;;Chemin de la legende;;3;;entrée;559340.95;6852771.7;1.086349;48.759711;212860000D0304,212860000D0229;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:5114f638-f99d-4da2-b3ed-d2e2c3a32765 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00009;21286;Cocorico;;;Route de la Baleine;;9;;entrée;559109.09;6853074.16;1.083096;48.76238;212860000D0290|212860000D0292|212860000D0273|212860000D0288;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:2480fe76-bbd8-4703-a41a-5c43fd3c5891 @v:468d0b9b-ec0c-448d-8188-4e28762251e2;21286_p899mr_00010;21286;Cocorico;;;Route de la Baleine;;10;;entrée;559049.98;6853035;1.082305;48.762015;212860000D0053|212860000D0054;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:6edd2c77-e8db-4384-bbb6-810e868d4dee @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00003;21286;Cocorico;;;Chemin de la legende;;3;;entrée;559340.95;6852771.7;1.086349;48.759711;212860000D0304|212860000D0229;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:f1a28bf1-fac3-41f0-8cb4-3abc82b2b963 @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00005;21286;Cocorico;;;Chemin de la legende;;5;;entrée;559361.75;6852783.43;1.086628;48.759821;212860000D0230;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:1890569a-d05f-4cf9-b27b-9172c497023e @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00006;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;6;;entrée;559372.5;6852781.05;1.086775;48.759802;212860000D0237;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:e9de2ecf-e082-448b-9a21-fe9d38d017ae @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00007;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;7;;entrée;559387.66;6852802.93;1.086974;48.760002;212860000D0150;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:e6278261-1a1b-4606-9c20-a8f2d06738fa @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00008;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;8;;entrée;559412.4;6852816.45;1.087306;48.760129;212860000D0236;commune;2021-09-06T00:00:00.000Z;true -@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:ff8bb658-3f73-4ac3-ab04-7966e869e991 @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00009;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;9;;entrée;559425.91;6852836.81;1.087483;48.760315;212860000D0148,212860000D0284;commune;2021-09-06T00:00:00.000Z;true +@c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:ff8bb658-3f73-4ac3-ab04-7966e869e991 @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00009;21286;Cocorico;;;Chemin de la legende;Les Bois Perdus;9;;entrée;559425.91;6852836.81;1.087483;48.760315;212860000D0148|212860000D0284;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:48691fd6-a611-4335-b346-a05679bcb31d @v:c9b6df77-638b-4b30-991e-71486a91ea95;21286_0040_00011;21286;Cocorico;;;Chemin de la legende;;11;;entrée;559461.28;6852855.2;1.087958;48.760488;212860000D0143;commune;2021-09-06T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:aeda3e20-8204-4d2b-8e59-184df887ae4e @v:c965715f-3874-4cba-ae4e-c9afa585f5eb;21286_0085_00001;21286;Cocorico;;;Impasse des lynels;Empreinte du Fleau;1;;entrée;558861.45;6854307.15;1.07932;48.773412;;commune;2022-08-23T00:00:00.000Z;true @c:e2b5c142-3eb3-4d07-830a-3d1a59195dfd @a:aeda3e20-8204-4d2b-8e59-184df887ae4e @v:c965715f-3874-4cba-ae4e-c9afa585f5eb;21286_0085_00001;21286;Cocorico;;;Impasse des lynels;Empreinte du Fleau;1;;logement;558824.92;6854280.12;1.078832;48.773161;;commune;2022-08-23T00:00:00.000Z;true diff --git a/data-mock/adresses-21286_cocorico.partial.json b/data-mock/adresses-21286_cocorico.partial.json index 1c2d783..c1fd61d 100644 --- a/data-mock/adresses-21286_cocorico.partial.json +++ b/data-mock/adresses-21286_cocorico.partial.json @@ -249,7 +249,7 @@ "long": 1.083096, "lat": 48.76238, "cad_parcelles": [ - "212860000D0290,212860000D0292,212860000D0273,212860000D0288" + "212860000D0290|212860000D0292|212860000D0273|212860000D0288" ], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", @@ -271,7 +271,7 @@ "y": 6853035, "long": 1.082305, "lat": 48.762015, - "cad_parcelles": ["212860000D0053,212860000D0054"], + "cad_parcelles": ["212860000D0053|212860000D0054"], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", "certification_commune": false @@ -292,7 +292,7 @@ "y": 6852771.7, "long": 1.086349, "lat": 48.759711, - "cad_parcelles": ["212860000D0304,212860000D0229"], + "cad_parcelles": ["212860000D0304|212860000D0229"], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", "certification_commune": false @@ -397,7 +397,7 @@ "y": 6852836.81, "long": 1.087483, "lat": 48.760315, - "cad_parcelles": ["212860000D0148,212860000D0284"], + "cad_parcelles": ["212860000D0148|212860000D0284"], "source": "commune", "date_der_maj": "2021-09-06T00:00:00.000Z", "certification_commune": false diff --git a/src/bal-converter/helpers/__snapshots__/bal-json-legacy-to-bal-json.test.ts.snap b/src/bal-converter/helpers/__snapshots__/bal-json-legacy-to-bal-json.test.ts.snap index 6b3fc66..d953bf6 100644 --- a/src/bal-converter/helpers/__snapshots__/bal-json-legacy-to-bal-json.test.ts.snap +++ b/src/bal-converter/helpers/__snapshots__/bal-json-legacy-to-bal-json.test.ts.snap @@ -1016,7 +1016,7 @@ exports[`balJSONlegacy2balJSON > should convert partial BAL JSON legacy into BAL }, { "cad_parcelles": [ - "212860000D0290,212860000D0292,212860000D0273,212860000D0288", + "212860000D0290|212860000D0292|212860000D0273|212860000D0288", ], "certification_commune": false, "cle_interop": "21286_p899mr_00009", @@ -1039,7 +1039,7 @@ exports[`balJSONlegacy2balJSON > should convert partial BAL JSON legacy into BAL }, { "cad_parcelles": [ - "212860000D0053,212860000D0054", + "212860000D0053|212860000D0054", ], "certification_commune": false, "cle_interop": "21286_p899mr_00010", @@ -1062,7 +1062,7 @@ exports[`balJSONlegacy2balJSON > should convert partial BAL JSON legacy into BAL }, { "cad_parcelles": [ - "212860000D0304,212860000D0229", + "212860000D0304|212860000D0229", ], "certification_commune": false, "cle_interop": "21286_0040_00003", @@ -1177,7 +1177,7 @@ exports[`balJSONlegacy2balJSON > should convert partial BAL JSON legacy into BAL }, { "cad_parcelles": [ - "212860000D0148,212860000D0284", + "212860000D0148|212860000D0284", ], "certification_commune": false, "cle_interop": "21286_0040_00009", diff --git a/src/bal-converter/helpers/__snapshots__/bal-to-ban.test.ts.snap b/src/bal-converter/helpers/__snapshots__/bal-to-ban.test.ts.snap index ae1e356..790f65b 100644 --- a/src/bal-converter/helpers/__snapshots__/bal-to-ban.test.ts.snap +++ b/src/bal-converter/helpers/__snapshots__/bal-to-ban.test.ts.snap @@ -17,7 +17,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000C0115,212860000C0114", + "212860000C0115|212860000C0114", ], }, }, @@ -116,7 +116,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000D0053,212860000D0054", + "212860000D0053|212860000D0054", ], }, }, @@ -144,7 +144,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000D0305,212860000D0307,212860000D0308,212860000D0266", + "212860000D0305|212860000D0307|212860000D0308|212860000D0266", ], }, }, @@ -242,7 +242,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000D0290,212860000D0292,212860000D0273,212860000D0288", + "212860000D0290|212860000D0292|212860000D0273|212860000D0288", ], }, }, @@ -360,7 +360,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000D0304,212860000D0229", + "212860000D0304|212860000D0229", ], }, }, @@ -486,7 +486,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000C0237,212860000C0107", + "212860000C0237|212860000C0107", ], }, }, @@ -616,7 +616,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000D0148,212860000D0284", + "212860000D0148|212860000D0284", ], }, }, @@ -788,7 +788,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000D0053,212860000D0054", + "212860000D0053|212860000D0054", ], }, }, @@ -806,7 +806,7 @@ exports[`balToBan > should convert Bal list into Ban list 1`] = ` "meta": { "cadastre": { "ids": [ - "212860000C0237,212860000C0107", + "212860000C0237|212860000C0107", ], }, }, diff --git a/src/bal-converter/helpers/csv-bal-to-json-bal.ts b/src/bal-converter/helpers/csv-bal-to-json-bal.ts index 192a98a..c9c4636 100644 --- a/src/bal-converter/helpers/csv-bal-to-json-bal.ts +++ b/src/bal-converter/helpers/csv-bal-to-json-bal.ts @@ -22,7 +22,7 @@ const csvBalToJsonBal = (csv: string): Bal => { case "certification_commune": return value === "1"; case "cad_parcelles": - return value !== '' ? value.split(",") : [] + return value !== '' ? value.split("|") : [] case "date_der_maj": return new Date(value); default: