From 5d7230f5e6282d40e37fd1287c034c2f5d87aaa3 Mon Sep 17 00:00:00 2001 From: Michel Daab Date: Mon, 5 Aug 2024 15:09:23 +0200 Subject: [PATCH] changes according to Palvina's code review --- README.md | 25 +++++++++++++++++++++++++ lidro/skeleton/group_maker.py | 4 ++-- test/skeleton/test_branch.py | 2 +- test/skeleton/test_main_skeleton.py | 6 +++--- test_files/40.geojson | 7 ------- test_files/43.geojson | 7 ------- test_files/44.geojson | 7 ------- test_files/90.geojson | 7 ------- 8 files changed, 31 insertions(+), 34 deletions(-) delete mode 100644 test_files/40.geojson delete mode 100644 test_files/43.geojson delete mode 100644 test_files/44.geojson delete mode 100644 test_files/90.geojson diff --git a/README.md b/README.md index 8446a3ab..995b971a 100644 --- a/README.md +++ b/README.md @@ -108,3 +108,28 @@ Pour lancer les tests : ``` python -m pytest -s ``` +### paramètres pour créer les squelettes des cours d'eau +Pour fonctionner, la création de squelettes a besoin d'une série de paramètres, certains ayant une valeur par défaut, d'autres non. Les paramètres se trouvent dans le fichier configs/configs_lidro.yaml. On peut soit les y modifier, soit les modifer en ligne de commande lors de l'exécution du script avec : +``` +python lidro/main_create_skeleton_lines.py [nom_paramètre_1]=[valeur_du_paramètre_1] [nom_paramètre_2]=[valeur_du_paramètre_2] +``` +ces paramètres sont : +SKELETON.FILE_PATH.MASK_INPUT_PATH : Le chemin d'entrée des masques des cours d'eau +SKELETON.FILE_PATH.SKELETON_LINES_OUTPUT_PATH : Le chemin de sortie des squelettes uniquement (pas de fichier de sortie si laissé à vide) +SKELETON.FILE_PATH.GAP_LINES_OUTPUT_PATH : Le chemin de sortie des lignes franchissant des ponts uniquement (pas de fichier de sortie si laissé à vide) +SKELETON.FILE_PATH.GLOBAL_LINES_OUTPUT_PATH : Le chemin de sortie des lignes et des squelettes ensemble + +SKELETON.MAX_GAP_WIDTH : La distance maximale envisagée pour franchir des ponts +SKELETON.MAX_BRIDGES : Le nombre maximal de ponts entre deux bras séparés de cours d'eau +SKELETON.GAP_WIDTH_CHECK_DB : La distance à partir de laquelle on vérifie via la base de données s'il y a bien un pont +SKELETON.RATIO_GAP : la proportion de la ligne franchissant un pont qui est comparé en base pour voir s'il y a bien un pont (trop grande et on pourrait trouver un pont qui ne correspond pas) + +SKELETON.DB_UNI.DB_NAME : Le nom de la base de données +SKELETON.DB_UNI.DB_HOST : l'adresse de la base de données +SKELETON.DB_UNI.DB_USER : L'utilisateur de la base de données +SKELETON.DB_UNI.DB_PASSWORD : Le mot de passe de l'utilisateur +SKELETON.DB_UNI.DB_PORT : La port de connexion avec la base de données + +SKELETON.BRANCH.VORONOI_MAX_LENGTH : LA longuer maximum des lignes individuelles des squelettes +SKELETON.BRANCH.WATER_MIN_SIZE : La longueur minimal à partir de laquelle une ligne de squelette sera automatiquement gardée (trop petite, et il y aura des sortes "d'aiguilles" qui apparaitront. Trop grande, et certains afluents ne seront pas détectés) +SKELETON.BRANCH.MAX_GAP_CANDIDATES : Le nombre maximum de candidats pour envisager de franchir des ponts entre deux bras \ No newline at end of file diff --git a/lidro/skeleton/group_maker.py b/lidro/skeleton/group_maker.py index 80260a0b..fa459d25 100644 --- a/lidro/skeleton/group_maker.py +++ b/lidro/skeleton/group_maker.py @@ -1,8 +1,8 @@ class GroupMaker: """ From a list of elements, GroupMaker is used to - group sets of elements according to single element from - the sets. For example: + put together groups of elements, according to single + element from each group. For example: At the beginning, we have {A}, {B}, {C}, {D}, {E} put_together(A, B) -> {A, B}, {C}, {D}, {E} put_together(C, D) -> {A, B}, {C, D}, {E} diff --git a/test/skeleton/test_branch.py b/test/skeleton/test_branch.py index 4049993b..da58f2fd 100644 --- a/test/skeleton/test_branch.py +++ b/test/skeleton/test_branch.py @@ -9,7 +9,7 @@ sys.path.append('lidro/skeleton') -BRANCH_TEST_1_PATH = "test_files/90.geojson" +BRANCH_TEST_1_PATH = "data/skeleton_hydro/test_files/90.geojson" CRS_FOR_TEST = 2145 WATER_MIN_SIZE_TEST = 20 diff --git a/test/skeleton/test_main_skeleton.py b/test/skeleton/test_main_skeleton.py index 9f0dbc29..9be7508b 100644 --- a/test/skeleton/test_main_skeleton.py +++ b/test/skeleton/test_main_skeleton.py @@ -18,9 +18,9 @@ DB_UNI_USER = os.getenv('DB_UNI_USER') DB_UNI_PASSWORD = os.getenv('DB_UNI_PASSWORD') CRS = 2154 -MAIN_SKELETON_TEST_1_1_PATH = "test_files/40.geojson" -MAIN_SKELETON_TEST_1_2_PATH = "test_files/43.geojson" -MAIN_SKELETON_TEST_1_3_PATH = "test_files/44.geojson" +MAIN_SKELETON_TEST_1_1_PATH = "data/skeleton_hydro/test_files/40.geojson" +MAIN_SKELETON_TEST_1_2_PATH = "data/skeleton_hydro/test_files/43.geojson" +MAIN_SKELETON_TEST_1_3_PATH = "data/skeleton_hydro/test_files/44.geojson" def test_main_skeleton_1(): diff --git a/test_files/40.geojson b/test_files/40.geojson deleted file mode 100644 index 7cccd82c..00000000 --- a/test_files/40.geojson +++ /dev/null @@ -1,7 +0,0 @@ -{ -"type": "FeatureCollection", -"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::2154" } }, -"features": [ -{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 699065.413934385520406, 6759448.5 ], [ 699063.5, 6759461.5 ], [ 699066.262332465150394, 6759463.18974278960377 ], [ 699081.333572532981634, 6759487.313280043192208 ], [ 699081.5, 6759490.586065614596009 ], [ 699083.472945803543553, 6759492.716397003270686 ], [ 699083.5, 6759501.5 ], [ 699085.471177920582704, 6759502.707364517264068 ], [ 699084.472945803543553, 6759521.283602996729314 ], [ 699078.5, 6759537.5 ], [ 699080.5, 6759537.5 ], [ 699082.716397003736347, 6759533.527054196223617 ], [ 699086.435427015880123, 6759533.564589496701956 ], [ 699087.5, 6759535.5 ], [ 699089.5, 6759535.5 ], [ 699089.5, 6759533.5 ], [ 699087.56458949635271, 6759532.435427015647292 ], [ 699087.926403762074187, 6759529.952435625717044 ], [ 699093.5, 6759531.5 ], [ 699092.506778866751119, 6759526.857554757036269 ], [ 699095.5, 6759508.586179815232754 ], [ 699092.516235235147178, 6759498.220095711760223 ], [ 699093.5, 6759494.5 ], [ 699091.752795581589453, 6759493.833355349488556 ], [ 699088.607240879791789, 6759486.55697579216212 ], [ 699087.5, 6759480.413934385403991 ], [ 699082.614180701202713, 6759474.574025148525834 ], [ 699081.5, 6759467.5 ], [ 699078.820317181060091, 6759465.926470963284373 ], [ 699075.607240879791789, 6759460.55697579216212 ], [ 699075.5, 6759454.5 ], [ 699069.5, 6759449.5 ], [ 699065.413934385520406, 6759448.5 ] ] ] } } -] -} diff --git a/test_files/43.geojson b/test_files/43.geojson deleted file mode 100644 index 1308a6ef..00000000 --- a/test_files/43.geojson +++ /dev/null @@ -1,7 +0,0 @@ -{ -"type": "FeatureCollection", -"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::2154" } }, -"features": [ -{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 698272.483764764852822, 6759201.220095711760223 ], [ 698270.5, 6759205.5 ], [ 698280.686719955410808, 6759208.666427466087043 ], [ 698291.413820184767246, 6759215.5 ], [ 698297.283602996263653, 6759215.527054196223617 ], [ 698304.413820184767246, 6759218.5 ], [ 698319.283602996263653, 6759218.527054196223617 ], [ 698327.413820184767246, 6759222.5 ], [ 698332.574025148525834, 6759222.614180700853467 ], [ 698333.5, 6759224.5 ], [ 698338.574025148525834, 6759224.614180700853467 ], [ 698339.5, 6759226.5 ], [ 698348.413934385520406, 6759230.5 ], [ 698358.686719955410808, 6759231.666427466087043 ], [ 698374.247204418410547, 6759248.166644650511444 ], [ 698375.5, 6759255.586065614596009 ], [ 698381.159515680046752, 6759261.048410073854029 ], [ 698381.5, 6759263.5 ], [ 698384.926470962003805, 6759263.820317179895937 ], [ 698389.413934385520406, 6759269.5 ], [ 698394.926470962003805, 6759271.820317179895937 ], [ 698400.5, 6759277.5 ], [ 698407.413820184767246, 6759279.5 ], [ 698429.586179815232754, 6759279.5 ], [ 698446.586179815232754, 6759278.5 ], [ 698459.0, 6759275.5 ], [ 698498.142445242963731, 6759276.50677886698395 ], [ 698513.556975790997967, 6759280.607240878976882 ], [ 698527.413820184767246, 6759287.5 ], [ 698536.413820184767246, 6759289.5 ], [ 698551.073601511539891, 6759288.501806816086173 ], [ 698554.413820184767246, 6759290.5 ], [ 698562.142445242963731, 6759289.50677886698395 ], [ 698571.413820184767246, 6759292.5 ], [ 698581.283602996263653, 6759292.527054196223617 ], [ 698586.413934385520406, 6759295.5 ], [ 698592.707095105201006, 6759296.677118103019893 ], [ 698593.5, 6759298.5 ], [ 698599.833355349488556, 6759299.752795581705868 ], [ 698600.5, 6759304.5 ], [ 698609.262332465150394, 6759314.18974278960377 ], [ 698615.5, 6759326.5 ], [ 698618.951589926262386, 6759326.840484320186079 ], [ 698620.5, 6759330.586065614596009 ], [ 698632.413934385520406, 6759341.5 ], [ 698643.142445242963731, 6759341.50677886698395 ], [ 698657.413820184767246, 6759345.5 ], [ 698664.435427015880123, 6759345.564589496701956 ], [ 698665.5, 6759348.5 ], [ 698673.707095105201006, 6759350.677118103019893 ], [ 698675.413934385520406, 6759353.5 ], [ 698683.707095105201006, 6759354.677118103019893 ], [ 698685.5, 6759358.5 ], [ 698689.810257209115662, 6759359.737667533569038 ], [ 698691.5, 6759362.5 ], [ 698697.926470962003805, 6759365.820317179895937 ], [ 698701.247204418410547, 6759369.166644650511444 ], [ 698701.5, 6759371.5 ], [ 698706.060660171788186, 6759373.939339828677475 ], [ 698706.5, 6759376.586065614596009 ], [ 698717.086370622622781, 6759385.965689181350172 ], [ 698717.5, 6759388.5 ], [ 698722.247204418410547, 6759389.166644650511444 ], [ 698723.483764764852822, 6759392.220095711760223 ], [ 698721.262332465150394, 6759398.81025721039623 ], [ 698714.810257209115662, 6759405.262332466430962 ], [ 698711.5, 6759405.5 ], [ 698708.5, 6759409.5 ], [ 698710.5, 6759417.0 ], [ 698707.5, 6759435.586179815232754 ], [ 698714.392759120208211, 6759443.44302420783788 ], [ 698715.5, 6759450.586179815232754 ], [ 698718.472945803543553, 6759455.716397003270686 ], [ 698717.5, 6759462.5 ], [ 698732.686719955410808, 6759467.666427466087043 ], [ 698737.4393572693225, 6759473.577802591957152 ], [ 698737.247204418410547, 6759476.833355349488556 ], [ 698727.5, 6759488.5 ], [ 698726.5, 6759501.5 ], [ 698730.5, 6759500.586065614596009 ], [ 698728.655030296300538, 6759496.335879155434668 ], [ 698737.5, 6759484.586065614596009 ], [ 698738.840484319953248, 6759480.048410073854029 ], [ 698741.5, 6759479.5 ], [ 698741.5, 6759475.413820184767246 ], [ 698736.586065614479594, 6759464.5 ], [ 698733.586065614479594, 6759462.5 ], [ 698727.443024209002033, 6759462.392759121023118 ], [ 698723.820317181060091, 6759458.926470963284373 ], [ 698723.5, 6759455.5 ], [ 698721.528822079417296, 6759454.292635482735932 ], [ 698720.5, 6759443.413934385403991 ], [ 698717.5, 6759439.5 ], [ 698713.913629377377219, 6759438.034310818649828 ], [ 698711.607240879791789, 6759433.55697579216212 ], [ 698711.5606427306775, 6759426.577802591957152 ], [ 698715.5, 6759421.586179815232754 ], [ 698714.666427467018366, 6759411.313280043192208 ], [ 698720.073529037996195, 6759405.820317179895937 ], [ 698727.56603432178963, 6759401.566034321673214 ], [ 698731.313280044589192, 6759394.666427466087043 ], [ 698739.586179815232754, 6759395.5 ], [ 698743.5, 6759394.5 ], [ 698744.564572984119877, 6759392.564589496701956 ], [ 698749.5, 6759393.5 ], [ 698750.425974851474166, 6759391.614180700853467 ], [ 698756.5, 6759390.5 ], [ 698761.292904894798994, 6759385.677118103019893 ], [ 698768.586065614479594, 6759384.5 ], [ 698777.189742790884338, 6759377.737667533569038 ], [ 698779.586065614479594, 6759377.5 ], [ 698783.166644650511444, 6759371.752795581705868 ], [ 698789.5, 6759371.5 ], [ 698792.048410073737614, 6759366.840484320186079 ], [ 698795.586065614479594, 6759366.5 ], [ 698799.5, 6759362.586065614596009 ], [ 698799.752795581589453, 6759359.166644650511444 ], [ 698801.5, 6759358.5 ], [ 698801.5, 6759355.5 ], [ 698798.500451771891676, 6759354.036811839789152 ], [ 698800.752795581589453, 6759347.166644650511444 ], [ 698809.5, 6759338.586065614596009 ], [ 698810.048410073737614, 6759333.840484320186079 ], [ 698813.577802593121305, 6759331.56064273044467 ], [ 698820.5, 6759330.5 ], [ 698821.666427467018366, 6759325.313280043192208 ], [ 698824.5, 6759323.5 ], [ 698826.707364517031237, 6759318.52882207930088 ], [ 698834.707095105201006, 6759320.677118103019893 ], [ 698840.413934385520406, 6759325.5 ], [ 698852.833355349488556, 6759330.752795581705868 ], [ 698853.5, 6759332.5 ], [ 698863.686719955410808, 6759333.666427466087043 ], [ 698870.413934385520406, 6759339.5 ], [ 698876.686719955410808, 6759341.666427466087043 ], [ 698890.413934385520406, 6759350.5 ], [ 698893.707095105201006, 6759350.677118103019893 ], [ 698894.5, 6759352.5 ], [ 698902.686719955410808, 6759355.666427466087043 ], [ 698920.413934385520406, 6759366.5 ], [ 698926.556975790997967, 6759367.607240878976882 ], [ 698931.413934385520406, 6759371.5 ], [ 698937.686719955410808, 6759372.666427466087043 ], [ 698942.413934385520406, 6759376.5 ], [ 698970.556975790997967, 6759384.607240878976882 ], [ 698985.810257209115662, 6759391.737667533569038 ], [ 698995.159515680046752, 6759401.048410073854029 ], [ 698996.5, 6759406.5 ], [ 699000.159515680046752, 6759408.048410073854029 ], [ 699003.5, 6759414.5 ], [ 699007.247204418410547, 6759417.166644650511444 ], [ 699008.5, 6759421.586065614596009 ], [ 699014.086370622622781, 6759425.965689181350172 ], [ 699018.5, 6759432.586065614596009 ], [ 699021.413934385520406, 6759435.5 ], [ 699023.926470962003805, 6759435.820317179895937 ], [ 699026.5, 6759439.5 ], [ 699031.5, 6759440.5 ], [ 699031.5, 6759438.5 ], [ 699021.840484319953248, 6759431.951589926145971 ], [ 699020.544953120406717, 6759428.364470270462334 ], [ 699022.635529730119742, 6759425.544953119941056 ], [ 699028.5, 6759426.5 ], [ 699027.5, 6759422.5 ], [ 699018.507222909945995, 6759417.147025710903108 ], [ 699018.527054196456447, 6759407.716397003270686 ], [ 699022.048410073737614, 6759400.840484320186079 ], [ 699028.422197406878695, 6759399.56064273044467 ], [ 699032.413934385520406, 6759404.5 ], [ 699034.5, 6759404.5 ], [ 699034.5, 6759401.413934385403991 ], [ 699027.701729563763365, 6759396.751328073441982 ], [ 699027.5, 6759392.5 ], [ 699022.443024209002033, 6759392.392759121023118 ], [ 698983.586179815232754, 6759375.5 ], [ 698975.577802593121305, 6759374.43935726955533 ], [ 698954.443024209002033, 6759367.392759121023118 ], [ 698949.586065614479594, 6759363.5 ], [ 698942.425974851474166, 6759363.385819299146533 ], [ 698934.586065614479594, 6759356.5 ], [ 698930.425974851474166, 6759356.385819299146533 ], [ 698928.586065614479594, 6759353.5 ], [ 698921.425974851474166, 6759352.385819299146533 ], [ 698920.5, 6759350.5 ], [ 698915.292904894798994, 6759350.322881896980107 ], [ 698909.5, 6759344.5 ], [ 698883.292904894798994, 6759331.322881896980107 ], [ 698877.586065614479594, 6759326.5 ], [ 698872.313280044589192, 6759325.333572533912957 ], [ 698861.586179815232754, 6759318.5 ], [ 698856.443024209002033, 6759318.392759121023118 ], [ 698848.586179815232754, 6759313.5 ], [ 698836.586179815232754, 6759310.5 ], [ 698824.5, 6759310.5 ], [ 698822.159515680046752, 6759318.951589926145971 ], [ 698815.5, 6759320.5 ], [ 698814.060660171788186, 6759324.060660171322525 ], [ 698810.833355349488556, 6759327.247204418294132 ], [ 698808.5, 6759327.5 ], [ 698806.086370622622781, 6759333.034310818649828 ], [ 698801.5, 6759335.413934385403991 ], [ 698801.262332465150394, 6759337.81025721039623 ], [ 698793.5, 6759345.5 ], [ 698791.159515680046752, 6759350.951589926145971 ], [ 698788.5, 6759351.5 ], [ 698789.426442500087433, 6759355.463963138870895 ], [ 698786.5, 6759356.5 ], [ 698785.412305920384824, 6759361.5 ], [ 698788.488999214023352, 6759365.181332128122449 ], [ 698785.729315414093435, 6759369.310762764886022 ], [ 698781.725387349841185, 6759366.790798705071211 ], [ 698783.587694079615176, 6759362.5 ], [ 698781.5, 6759362.5 ], [ 698775.810257209115662, 6759370.262332466430962 ], [ 698771.413820184767246, 6759370.5 ], [ 698762.422197406878695, 6759375.43935726955533 ], [ 698758.413934385520406, 6759375.5 ], [ 698752.556975790997967, 6759381.392759121023118 ], [ 698741.142445242963731, 6759384.49322113301605 ], [ 698729.716397003736347, 6759383.472945803776383 ], [ 698724.820317181060091, 6759379.926470963284373 ], [ 698718.5, 6759369.5 ], [ 698715.586065614479594, 6759366.5 ], [ 698711.965689182863571, 6759366.086370624601841 ], [ 698707.5, 6759359.5 ], [ 698701.048410073737614, 6759356.159515679813921 ], [ 698698.586065614479594, 6759352.5 ], [ 698695.048410073737614, 6759352.159515679813921 ], [ 698694.5, 6759349.5 ], [ 698690.189742790884338, 6759348.262332466430962 ], [ 698686.5, 6759344.5 ], [ 698683.166644650511444, 6759344.247204418294132 ], [ 698677.586065614479594, 6759338.5 ], [ 698664.577802593121305, 6759335.43935726955533 ], [ 698656.586179815232754, 6759331.5 ], [ 698641.577802593121305, 6759330.43935726955533 ], [ 698632.073529037996195, 6759325.179682820104063 ], [ 698623.820317181060091, 6759316.926470963284373 ], [ 698623.5, 6759314.5 ], [ 698620.737667534849606, 6759312.81025721039623 ], [ 698613.5, 6759300.413934385403991 ], [ 698609.737667534849606, 6759297.81025721039623 ], [ 698609.5, 6759295.5 ], [ 698606.939339828211814, 6759295.060660171322525 ], [ 698599.586065614479594, 6759285.5 ], [ 698596.443024209002033, 6759285.392759121023118 ], [ 698591.586179815232754, 6759282.5 ], [ 698580.0, 6759283.5 ], [ 698565.857554757036269, 6759282.49322113301605 ], [ 698527.716397003736347, 6759277.472945803776383 ], [ 698522.425974851474166, 6759276.385819299146533 ], [ 698521.5, 6759274.5 ], [ 698516.425974851474166, 6759273.385819299146533 ], [ 698512.586179815232754, 6759270.5 ], [ 698495.586179815232754, 6759266.5 ], [ 698464.413820184767246, 6759265.5 ], [ 698458.413934385520406, 6759266.5 ], [ 698456.283602996263653, 6759268.472945803776383 ], [ 698446.142445242963731, 6759269.49322113301605 ], [ 698438.413820184767246, 6759268.5 ], [ 698411.577802593121305, 6759270.43935726955533 ], [ 698393.939339828211814, 6759261.060660171322525 ], [ 698388.752795581589453, 6759255.833355349488556 ], [ 698388.5, 6759253.413934385403991 ], [ 698384.840484319953248, 6759250.951589926145971 ], [ 698380.5, 6759243.5 ], [ 698377.737667534849606, 6759241.81025721039623 ], [ 698375.5, 6759236.5 ], [ 698373.614180701202713, 6759235.574025148525834 ], [ 698373.5, 6759231.5 ], [ 698369.939339828211814, 6759230.060660171322525 ], [ 698369.5, 6759227.5 ], [ 698363.292904894798994, 6759226.322881896980107 ], [ 698359.5, 6759222.5 ], [ 698352.716397003736347, 6759222.472945803776383 ], [ 698340.443024209002033, 6759219.392759121023118 ], [ 698335.5, 6759215.5 ], [ 698329.048410073737614, 6759213.159515679813921 ], [ 698328.5, 6759210.5 ], [ 698316.852974289562553, 6759210.492777089588344 ], [ 698315.5, 6759208.5 ], [ 698313.5, 6759208.5 ], [ 698313.159515680046752, 6759210.951589926145971 ], [ 698310.857554757036269, 6759211.49322113301605 ], [ 698306.292904894798994, 6759210.322881896980107 ], [ 698301.586179815232754, 6759206.5 ], [ 698298.292904894798994, 6759206.322881896980107 ], [ 698297.5, 6759204.5 ], [ 698291.536036859615706, 6759206.426442499272525 ], [ 698289.586065614479594, 6759203.5 ], [ 698281.716397003736347, 6759203.472945803776383 ], [ 698275.292904894798994, 6759201.322881896980107 ], [ 698274.5, 6759197.5 ], [ 698271.5, 6759197.5 ], [ 698272.483764764852822, 6759201.220095711760223 ] ] ] } } -] -} diff --git a/test_files/44.geojson b/test_files/44.geojson deleted file mode 100644 index 0618305b..00000000 --- a/test_files/44.geojson +++ /dev/null @@ -1,7 +0,0 @@ -{ -"type": "FeatureCollection", -"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::2154" } }, -"features": [ -{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 699038.5, 6759434.5 ], [ 699036.5, 6759442.5 ], [ 699042.413820184767246, 6759446.5 ], [ 699045.833355349488556, 6759446.752795581705868 ], [ 699046.5, 6759449.5 ], [ 699051.951589926262386, 6759451.840484320186079 ], [ 699054.5, 6759455.5 ], [ 699056.5, 6759455.5 ], [ 699058.5, 6759443.5 ], [ 699053.292904894798994, 6759443.322881896980107 ], [ 699051.586065614479594, 6759439.5 ], [ 699040.586179815232754, 6759434.5 ], [ 699038.5, 6759434.5 ] ] ] } } -] -} diff --git a/test_files/90.geojson b/test_files/90.geojson deleted file mode 100644 index e2ae0971..00000000 --- a/test_files/90.geojson +++ /dev/null @@ -1,7 +0,0 @@ -{ -"type": "FeatureCollection", -"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::2154" } }, -"features": [ -{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 706730.5, 6754661.5 ], [ 706730.5, 6754664.5 ], [ 706737.5, 6754663.5 ], [ 706740.5, 6754654.586179815232754 ], [ 706739.516235235147178, 6754649.779904288239777 ], [ 706743.5, 6754637.586179815232754 ], [ 706743.5606427306775, 6754632.577802591957152 ], [ 706746.752795581589453, 6754625.166644650511444 ], [ 706748.5, 6754624.5 ], [ 706747.501806815736927, 6754620.926398488692939 ], [ 706748.528822079417296, 6754605.707364517264068 ], [ 706750.5, 6754604.5 ], [ 706754.56458949635271, 6754579.564572984352708 ], [ 706757.5, 6754578.5 ], [ 706755.381012363242917, 6754573.279904288239777 ], [ 706759.607240879791789, 6754559.44302420783788 ], [ 706761.5, 6754557.586065614596009 ], [ 706760.506778866751119, 6754551.857554757036269 ], [ 706764.5, 6754538.586179815232754 ], [ 706764.5606427306775, 6754533.577802591957152 ], [ 706766.5, 6754530.586179815232754 ], [ 706766.527054196456447, 6754516.716397003270686 ], [ 706769.5, 6754510.586179815232754 ], [ 706772.5, 6754497.586179815232754 ], [ 706772.56458949635271, 6754488.564572984352708 ], [ 706775.5, 6754487.5 ], [ 706774.501806815736927, 6754479.926398488692939 ], [ 706775.5606427306775, 6754473.577802591957152 ], [ 706777.666427467018366, 6754467.313280043192208 ], [ 706780.5, 6754464.586065614596009 ], [ 706780.528822079417296, 6754458.707364517264068 ], [ 706782.5, 6754457.5 ], [ 706783.666427467018366, 6754451.313280043192208 ], [ 706787.5, 6754449.5 ], [ 706788.677118103485554, 6754441.292904894798994 ], [ 706793.5, 6754438.5 ], [ 706794.048410073737614, 6754432.840484320186079 ], [ 706800.5, 6754431.5 ], [ 706800.5, 6754429.5 ], [ 706791.5, 6754429.5 ], [ 706790.036811842699535, 6754431.49954822845757 ], [ 706787.913629377377219, 6754430.034310818649828 ], [ 706788.5, 6754421.413820184767246 ], [ 706786.501806815736927, 6754417.073601511307061 ], [ 706789.5, 6754405.586179815232754 ], [ 706789.5606427306775, 6754395.577802591957152 ], [ 706790.913629377377219, 6754391.965689181350172 ], [ 706794.5, 6754390.5 ], [ 706794.5, 6754388.5 ], [ 706792.528822079417296, 6754387.292635482735932 ], [ 706792.5, 6754380.0 ], [ 706795.5, 6754378.5 ], [ 706793.5, 6754375.0 ], [ 706793.506778866751119, 6754364.857554757036269 ], [ 706795.5, 6754357.586179815232754 ], [ 706794.501806815736927, 6754349.926398488692939 ], [ 706796.5, 6754339.586179815232754 ], [ 706797.528822079417296, 6754315.707364517264068 ], [ 706800.5, 6754313.586065614596009 ], [ 706800.5, 6754311.413934385403991 ], [ 706797.614180701202713, 6754309.574025148525834 ], [ 706796.5, 6754303.0 ], [ 706798.5, 6754295.586179815232754 ], [ 706797.528822079417296, 6754286.707364517264068 ], [ 706799.5, 6754285.5 ], [ 706799.5, 6754283.5 ], [ 706796.500451771891676, 6754282.036811839789152 ], [ 706796.527054196456447, 6754268.716397003270686 ], [ 706799.5, 6754265.5 ], [ 706796.5, 6754258.0 ], [ 706796.5, 6754233.0 ], [ 706798.5, 6754209.413934385403991 ], [ 706795.5606427306775, 6754205.422197408042848 ], [ 706795.5, 6754195.413934385403991 ], [ 706793.516235235147178, 6754193.220095711760223 ], [ 706794.5, 6754164.413820184767246 ], [ 706789.506778866751119, 6754141.142445242963731 ], [ 706789.506778866751119, 6754128.857554757036269 ], [ 706794.5, 6754116.586179815232754 ], [ 706797.614180701202713, 6754103.425974851474166 ], [ 706799.5, 6754102.5 ], [ 706799.939339828211814, 6754098.939339828677475 ], [ 706803.5, 6754097.5 ], [ 706801.5, 6754094.0 ], [ 706803.5, 6754075.586179815232754 ], [ 706803.5, 6754059.413820184767246 ], [ 706801.501806815736927, 6754045.073601511307061 ], [ 706802.5, 6754038.413934385403991 ], [ 706799.527054196456447, 6754032.283602996729314 ], [ 706798.5, 6754020.5 ], [ 706795.666427467018366, 6754018.686719956807792 ], [ 706792.5, 6754010.0 ], [ 706793.607240879791789, 6753999.44302420783788 ], [ 706798.5, 6753998.5 ], [ 706799.5, 6753992.5 ], [ 706795.292904894798994, 6753992.322881896980107 ], [ 706793.527054196456447, 6753989.283602996729314 ], [ 706793.506778866751119, 6753977.857554757036269 ], [ 706795.5, 6753969.5 ], [ 706793.5, 6753969.5 ], [ 706793.254821590846404, 6753971.821841089054942 ], [ 706791.606587939313613, 6753972.447489879094064 ], [ 706787.501806815736927, 6753966.926398488692939 ], [ 706791.577802593121305, 6753962.56064273044467 ], [ 706800.5, 6753963.5 ], [ 706802.073529037996195, 6753960.820317179895937 ], [ 706805.5, 6753959.5 ], [ 706805.5, 6753957.413820184767246 ], [ 706804.5, 6753951.5 ], [ 706802.5, 6753951.5 ], [ 706801.435427015880123, 6753954.435410503298044 ], [ 706798.507222909945995, 6753953.147025710903108 ], [ 706802.5, 6753946.586179815232754 ], [ 706800.501806815736927, 6753938.073601511307061 ], [ 706800.516235235147178, 6753931.779904288239777 ], [ 706802.5, 6753927.5 ], [ 706787.425974851474166, 6753922.385819299146533 ], [ 706784.586179815232754, 6753919.5 ], [ 706782.5, 6753919.5 ], [ 706781.5, 6753922.413820184767246 ], [ 706781.5, 6753926.5 ], [ 706785.220095711643808, 6753925.516235235147178 ], [ 706786.633416056167334, 6753927.426398488692939 ], [ 706786.472945803543553, 6753934.283602996729314 ], [ 706784.5, 6753936.413934385403991 ], [ 706783.472945803543553, 6753954.283602996729314 ], [ 706781.5, 6753958.413820184767246 ], [ 706782.389315363252535, 6753965.565511114895344 ], [ 706780.468754711793736, 6753966.402775265276432 ], [ 706777.5, 6753963.5 ], [ 706773.5, 6753962.5 ], [ 706774.471177920582704, 6753967.292635482735932 ], [ 706772.5, 6753968.5 ], [ 706771.5, 6753974.5 ], [ 706774.951589926262386, 6753974.840484320186079 ], [ 706775.322881896514446, 6753977.707095105201006 ], [ 706768.5, 6753978.5 ], [ 706770.5, 6753983.0 ], [ 706768.5, 6753985.413934385403991 ], [ 706768.247204418410547, 6753989.833355349488556 ], [ 706763.5, 6753990.5 ], [ 706761.5, 6753992.5 ], [ 706758.262332465150394, 6753999.81025721039623 ], [ 706751.5, 6754008.413934385403991 ], [ 706750.262332465150394, 6754012.81025721039623 ], [ 706745.5, 6754018.413934385403991 ], [ 706745.221054494613782, 6754022.871220936998725 ], [ 706742.5, 6754023.5 ], [ 706734.5, 6754032.5 ], [ 706734.5, 6754040.5 ], [ 706739.147025710437447, 6754039.507222910411656 ], [ 706740.5, 6754042.5 ], [ 706750.5, 6754042.5 ], [ 706753.677118103485554, 6754034.292904894798994 ], [ 706755.5, 6754033.5 ], [ 706755.671733715804294, 6754027.303071970120072 ], [ 706760.5, 6754027.5 ], [ 706762.614180701202713, 6754018.425974851474166 ], [ 706764.5, 6754017.5 ], [ 706766.752795581589453, 6754011.166644650511444 ], [ 706771.166644650511444, 6754006.752795581705868 ], [ 706778.852388428989798, 6754003.765725327655673 ], [ 706780.5, 6754010.5 ], [ 706784.4393572693225, 6754014.577802591957152 ], [ 706786.5, 6754031.586179815232754 ], [ 706790.471177920582704, 6754037.707364517264068 ], [ 706790.5, 6754050.586179815232754 ], [ 706792.493221133248881, 6754054.857554757036269 ], [ 706793.5, 6754074.0 ], [ 706791.472945803543553, 6754092.283602996729314 ], [ 706784.5, 6754108.413820184767246 ], [ 706780.5, 6754130.413820184767246 ], [ 706780.5, 6754141.586179815232754 ], [ 706783.472945803543553, 6754148.716397003270686 ], [ 706787.493221133248881, 6754173.857554757036269 ], [ 706789.498193184263073, 6754203.926398488692939 ], [ 706788.060660171788186, 6754208.060660171322525 ], [ 706783.5, 6754209.5 ], [ 706784.413934385520406, 6754212.5 ], [ 706788.385819298797287, 6754213.425974851474166 ], [ 706789.5, 6754223.0 ], [ 706788.385819298797287, 6754233.574025148525834 ], [ 706784.5, 6754235.5 ], [ 706784.5, 6754237.5 ], [ 706788.471177920582704, 6754238.707364517264068 ], [ 706789.483764764852822, 6754245.220095711760223 ], [ 706788.43541050364729, 6754253.435427015647292 ], [ 706786.5, 6754254.5 ], [ 706786.5, 6754256.5 ], [ 706788.247204418410547, 6754257.166644650511444 ], [ 706790.5, 6754262.0 ], [ 706788.5, 6754265.413934385403991 ], [ 706789.5, 6754286.0 ], [ 706787.5, 6754297.413820184767246 ], [ 706788.493221133248881, 6754305.142445242963731 ], [ 706786.5, 6754310.413820184767246 ], [ 706786.5, 6754312.5 ], [ 706788.5, 6754314.0 ], [ 706786.5, 6754348.5 ], [ 706788.496103194658644, 6754350.108051982708275 ], [ 706784.5, 6754371.413820184767246 ], [ 706784.471177920582704, 6754381.292635482735932 ], [ 706782.5, 6754382.5 ], [ 706783.633416056167334, 6754389.573601511307061 ], [ 706781.471177920582704, 6754404.292635482735932 ], [ 706779.5, 6754405.5 ], [ 706780.455046879593283, 6754409.364470270462334 ], [ 706777.5, 6754415.413820184767246 ], [ 706778.493221133248881, 6754426.142445242963731 ], [ 706776.5, 6754430.413820184767246 ], [ 706775.472945803543553, 6754445.283602996729314 ], [ 706772.5, 6754449.413820184767246 ], [ 706774.472945803543553, 6754456.283602996729314 ], [ 706772.951589926262386, 6754459.159515679813921 ], [ 706770.5, 6754459.5 ], [ 706768.471177920582704, 6754480.292635482735932 ], [ 706766.5, 6754481.5 ], [ 706765.5, 6754486.413820184767246 ], [ 706765.43541050364729, 6754496.435427015647292 ], [ 706761.5, 6754498.413934385403991 ], [ 706763.493221133248881, 6754504.142445242963731 ], [ 706761.5, 6754506.413934385403991 ], [ 706760.4393572693225, 6754518.422197408042848 ], [ 706758.5, 6754520.413934385403991 ], [ 706759.493221133248881, 6754525.142445242963731 ], [ 706756.5, 6754535.413820184767246 ], [ 706756.472945803543553, 6754545.283602996729314 ], [ 706750.5, 6754565.413820184767246 ], [ 706745.4393572693225, 6754595.422197408042848 ], [ 706742.5, 6754600.413820184767246 ], [ 706740.472945803543553, 6754620.283602996729314 ], [ 706736.5, 6754631.413820184767246 ], [ 706735.4393572693225, 6754642.422197408042848 ], [ 706732.5, 6754648.413820184767246 ], [ 706732.471177920582704, 6754660.292635482735932 ], [ 706730.5, 6754661.5 ] ] ] } } -] -}