mirror of
https://github.com/Alex38Lyon/Synthese-PSM_LARRA.git
synced 2026-11-29 19:58:36 +00:00
Merge branch 'main' of https://github.com/Alex38Lyon/Synthese-PSM_LARRA
This commit is contained in:
commit
00a948af31
30 files changed
+175654
-176238
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3509,3 +3509,201 @@ Attributes: _SCRAP_ID=79768, _TYPE=border, _SCRAP=SP-Explo_01_1982_01_01_01, _CL
|
||||
2026-11-20 06:46:08,343 - WARNING - Any intersection issue
|
||||
Attributes: _SCRAP_ID=80606, _TYPE=border, _SCRAP=SP-Explo_09_1994_08_01_01, _CLIP=on, _TAGS=2048, _SUBTYPE=visible, _SCALE=4, _TEXT=None
|
||||
2026-11-20 06:46:08,343 - WARNING - ══════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:50:30,620 - INFO - ╔═══════════════════════════════════════════════════════════════════════════════════════════════════╗
|
||||
2026-11-20 10:50:30,620 - INFO - ║ Script to generate QGis (.gpkg) files from Therion (.shp) files with auto-correction if possible ║
|
||||
2026-11-20 10:50:30,620 - INFO - ║ original written by X. Robert, ISTerre : October 2022 ║
|
||||
2026-11-20 10:50:30,620 - INFO - ║ updated by : alexandre.pont@yahoo.fr ║
|
||||
2026-11-20 10:50:30,621 - INFO - ║ version : 2026.10.26 ║
|
||||
2026-11-20 10:50:30,621 - INFO - ║ mode : commande line mode ║
|
||||
2026-11-20 10:50:30,621 - INFO - ║ input folder : ~/Synthese-PSM_LARRA/Outputs/SHP ║
|
||||
2026-11-20 10:50:30,621 - INFO - ║ output folder : ~/Outputs/SHP/QGis_GPKG_Files ║
|
||||
2026-11-20 10:50:30,621 - INFO - ║ log file : ~/SHP/QGis_GPKG_Files/pyThtoQgis.log ║
|
||||
2026-11-20 10:50:30,621 - INFO - ╚═══════════════════════════════════════════════════════════════════════════════════════════════════╝
|
||||
2026-11-20 10:50:30,621 - INFO - Step 1 : test files and convert to GPKG format in the folder: ~/Outputs/SHP/QGis_GPKG_Files
|
||||
2026-11-20 10:50:30,621 - INFO - ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:50:30,621 - INFO - Process with file (1/7): points2d.shp
|
||||
2026-11-20 10:50:30,621 - INFO - Bilan file : ~/Outputs/SHP/points2d.shp
|
||||
2026-11-20 10:50:32,284 - INFO - All geometry are valid, nbr : 19604
|
||||
2026-11-20 10:50:32,284 - INFO - Geometric types :
|
||||
2026-11-20 10:50:32,284 - INFO - POINT : 19604
|
||||
2026-11-20 10:50:32,284 - INFO - Bounding box :
|
||||
2026-11-20 10:50:32,284 - INFO - xmin = 675380.844 xmax = 688038.566
|
||||
2026-11-20 10:50:32,284 - INFO - ymin = 4752180.977 ymax = 4763951.350
|
||||
2026-11-20 10:50:32,284 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:50:32,288 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:32,290 - INFO - SHP file conversion : points2d.shp with 19604 objets
|
||||
2026-11-20 10:50:34,025 - INFO - GPKG conversion completed file : points2d, 19604 converted objects
|
||||
2026-11-20 10:50:34,025 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/points2d.gpkg
|
||||
2026-11-20 10:50:35,652 - INFO - All geometry are valid, nbr : 19604
|
||||
2026-11-20 10:50:35,656 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:35,657 - INFO - Conversion of 19604 features in file ~/Outputs/SHP/QGis_GPKG_Filespoints2d.gpkg without issue
|
||||
2026-11-20 10:50:35,657 - INFO - ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:50:35,658 - INFO - Process with file (2/7): lines2d.shp
|
||||
2026-11-20 10:50:35,658 - INFO - Bilan file : ~/Outputs/SHP/lines2d.shp
|
||||
2026-11-20 10:50:37,545 - INFO - All geometry are valid, nbr : 42076
|
||||
2026-11-20 10:50:37,545 - WARNING - Warning geometries : 1256
|
||||
2026-11-20 10:50:37,545 - WARNING - Too few points : 1256
|
||||
2026-11-20 10:50:37,545 - INFO - Geometric types :
|
||||
2026-11-20 10:50:37,545 - INFO - LINESTRING : 42076
|
||||
2026-11-20 10:50:37,545 - INFO - Bounding box :
|
||||
2026-11-20 10:50:37,545 - INFO - xmin = 675378.404 xmax = 688036.426
|
||||
2026-11-20 10:50:37,545 - INFO - ymin = 4752172.720 ymax = 4763957.369
|
||||
2026-11-20 10:50:37,545 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:50:37,547 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:37,549 - INFO - SHP file conversion : lines2d.shp with 42076 objets
|
||||
2026-11-20 10:50:39,940 - INFO - GPKG conversion completed file : lines2d_fixed, 42076 converted objects
|
||||
2026-11-20 10:50:39,940 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/lines2d_fixed.gpkg
|
||||
2026-11-20 10:50:41,806 - INFO - All geometry are valid, nbr : 42076
|
||||
2026-11-20 10:50:41,808 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:41,810 - INFO - Conversion of 42076 features in file ~/Outputs/SHP/QGis_GPKG_Fileslines2d_fixed.gpkg without issue
|
||||
2026-11-20 10:50:41,810 - INFO - ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:50:41,810 - INFO - Process with file (3/7): outline2d.shp
|
||||
2026-11-20 10:50:41,810 - INFO - Bilan file : ~/Outputs/SHP/outline2d.shp
|
||||
2026-11-20 10:50:41,905 - INFO - All geometry are valid, nbr : 558
|
||||
2026-11-20 10:50:41,905 - WARNING - Warning geometries : 363
|
||||
2026-11-20 10:50:41,905 - WARNING - Unknown error (1) : 363
|
||||
2026-11-20 10:50:41,905 - INFO - Geometric types :
|
||||
2026-11-20 10:50:41,905 - INFO - POLYGON : 558
|
||||
2026-11-20 10:50:41,905 - INFO - Bounding box :
|
||||
2026-11-20 10:50:41,905 - INFO - xmin = 675391.336 xmax = 688036.426
|
||||
2026-11-20 10:50:41,905 - INFO - ymin = 4752178.645 ymax = 4763953.204
|
||||
2026-11-20 10:50:41,905 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:50:41,905 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:41,906 - INFO - SHP file conversion : outline2d.shp with 558 objets
|
||||
2026-11-20 10:50:42,028 - INFO - GPKG conversion completed file : outline2d, 558 converted objects
|
||||
2026-11-20 10:50:42,028 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/outline2d.gpkg
|
||||
2026-11-20 10:50:42,092 - INFO - All geometry are valid, nbr : 558
|
||||
2026-11-20 10:50:42,093 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:42,093 - INFO - Conversion of 558 features in file ~/Outputs/SHP/QGis_GPKG_Filesoutline2d.gpkg without issue
|
||||
2026-11-20 10:50:42,093 - INFO - ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:50:42,093 - INFO - Process with file (4/7): areas2d.shp
|
||||
2026-11-20 10:50:42,093 - INFO - Bilan file : ~/Outputs/SHP/areas2d.shp
|
||||
2026-11-20 10:50:42,132 - INFO - All geometry are valid, nbr : 626
|
||||
2026-11-20 10:50:42,132 - WARNING - Warning geometries : 1
|
||||
2026-11-20 10:50:42,132 - WARNING - Ring self-intersection : 1
|
||||
2026-11-20 10:50:42,132 - INFO - Geometric types :
|
||||
2026-11-20 10:50:42,132 - INFO - POLYGON : 626
|
||||
2026-11-20 10:50:42,132 - INFO - Bounding box :
|
||||
2026-11-20 10:50:42,132 - INFO - xmin = 675378.404 xmax = 688025.040
|
||||
2026-11-20 10:50:42,132 - INFO - ymin = 4752619.338 ymax = 4763957.369
|
||||
2026-11-20 10:50:42,132 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:50:42,132 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:42,132 - INFO - SHP file conversion : areas2d.shp with 626 objets
|
||||
on 45: 2026-11-20 10:50:42,138 - ERROR - !!! Invalid geometry in file : areas2d,
|
||||
Geometry type: POLYGON,
|
||||
FID: 45,
|
||||
Message code: 1, Ring Self-intersection at or near point 684324.78328053525 4762578.8864441318,
|
||||
Attributes: _SCRAP_ID=5418, _SCRAP=SP-Explo_12_1998_08_12_01, _TYPE=water, _CLIP=on, _TAGS=6144, _SUBTYPE=None, _SCALE=4
|
||||
2026-11-20 10:50:42,186 - INFO - GPKG conversion completed file : areas2d_fixed, 626 converted objects
|
||||
2026-11-20 10:50:42,186 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/areas2d_fixed.gpkg
|
||||
2026-11-20 10:50:42,226 - INFO - All geometry are valid, nbr : 626
|
||||
2026-11-20 10:50:42,226 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:42,226 - INFO - Conversion of 626 features in file ~/Outputs/SHP/QGis_GPKG_Filesareas2d_fixed.gpkg without issue
|
||||
2026-11-20 10:50:42,226 - INFO - ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:50:42,226 - INFO - Process with file (5/7): walls3d.shp
|
||||
2026-11-20 10:50:42,226 - INFO - Bilan file : ~/Outputs/SHP/walls3d.shp
|
||||
2026-11-20 10:50:44,373 - INFO - All geometry are valid, nbr : 565
|
||||
2026-11-20 10:50:44,373 - WARNING - Warning geometries : 565
|
||||
2026-11-20 10:50:44,373 - WARNING - Not supported : 565
|
||||
2026-11-20 10:50:44,373 - INFO - Geometric types :
|
||||
2026-11-20 10:50:44,373 - INFO - GEOMETRYCOLLECTION : 565
|
||||
2026-11-20 10:50:44,373 - INFO - Bounding box :
|
||||
2026-11-20 10:50:44,373 - INFO - xmin = 675391.336 xmax = 688036.426
|
||||
2026-11-20 10:50:44,373 - INFO - ymin = 4752178.645 ymax = 4763953.204
|
||||
2026-11-20 10:50:44,373 - INFO - Dimensions, Z present : True M present : False
|
||||
2026-11-20 10:50:44,374 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:44,374 - INFO - SHP file conversion : walls3d.shp with 565 objets
|
||||
2026-11-20 10:50:50,033 - INFO - GPKG conversion completed file : walls3d, 565 converted objects
|
||||
2026-11-20 10:50:50,033 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/walls3d.gpkg
|
||||
2026-11-20 10:50:50,246 - INFO - All geometry are valid, nbr : 565
|
||||
2026-11-20 10:50:50,246 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:50,247 - INFO - Conversion of 565 features in file ~/Outputs/SHP/QGis_GPKG_Fileswalls3d.gpkg without issue
|
||||
2026-11-20 10:50:50,247 - INFO - ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:50:50,247 - INFO - Process with file (6/7): stations3d.shp
|
||||
2026-11-20 10:50:50,247 - INFO - Bilan file : ~/Outputs/SHP/stations3d.shp
|
||||
2026-11-20 10:50:54,709 - INFO - All geometry are valid, nbr : 73036
|
||||
2026-11-20 10:50:54,709 - INFO - Geometric types :
|
||||
2026-11-20 10:50:54,709 - INFO - POINT : 73036
|
||||
2026-11-20 10:50:54,710 - INFO - Bounding box :
|
||||
2026-11-20 10:50:54,710 - INFO - xmin = 674000.780 xmax = 688034.880
|
||||
2026-11-20 10:50:54,710 - INFO - ymin = 4752186.580 ymax = 4763951.350
|
||||
2026-11-20 10:50:54,710 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:50:54,719 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:50:54,722 - INFO - SHP file conversion : stations3d.shp with 73036 objets
|
||||
2026-11-20 10:50:59,453 - INFO - GPKG conversion completed file : stations3d, 73036 converted objects
|
||||
2026-11-20 10:50:59,453 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/stations3d.gpkg
|
||||
2026-11-20 10:51:03,874 - INFO - All geometry are valid, nbr : 73036
|
||||
2026-11-20 10:51:03,884 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:51:03,887 - INFO - Conversion of 73036 features in file ~/Outputs/SHP/QGis_GPKG_Filesstations3d.gpkg without issue
|
||||
2026-11-20 10:51:03,887 - INFO - ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:51:03,887 - INFO - Process with file (7/7): shots3d.shp
|
||||
2026-11-20 10:51:03,887 - INFO - Bilan file : ~/Outputs/SHP/shots3d.shp
|
||||
2026-11-20 10:51:07,655 - INFO - All geometry are valid, nbr : 71481
|
||||
2026-11-20 10:51:07,655 - WARNING - Warning geometries : 4347
|
||||
2026-11-20 10:51:07,655 - WARNING - Too few points : 4347
|
||||
2026-11-20 10:51:07,655 - INFO - Geometric types :
|
||||
2026-11-20 10:51:07,655 - INFO - LINESTRING : 71481
|
||||
2026-11-20 10:51:07,655 - INFO - Bounding box :
|
||||
2026-11-20 10:51:07,655 - INFO - xmin = 674000.780 xmax = 688034.880
|
||||
2026-11-20 10:51:07,655 - INFO - ymin = 4752186.580 ymax = 4763951.350
|
||||
2026-11-20 10:51:07,655 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:51:07,661 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:51:07,664 - INFO - SHP file conversion : shots3d.shp with 71481 objets
|
||||
2026-11-20 10:51:12,365 - INFO - GPKG conversion completed file : shots3d, 71481 converted objects
|
||||
2026-11-20 10:51:12,365 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/shots3d.gpkg
|
||||
2026-11-20 10:51:16,124 - INFO - All geometry are valid, nbr : 71481
|
||||
2026-11-20 10:51:16,131 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:51:16,133 - INFO - Conversion of 71481 features in file ~/Outputs/SHP/QGis_GPKG_Filesshots3d.gpkg without issue
|
||||
2026-11-20 10:51:16,134 - INFO - Step 2 : adapte drawing files (cut it) for QGis in the folder: ~/Outputs/SHP/QGis_GPKG_Files
|
||||
2026-11-20 10:51:16,134 - INFO - Clipping file : ~/SHP/QGis_GPKG_Files/lines2d_fixed.gpkg to file : ~/SHP/QGis_GPKG_Files/lines2dMasked.gpkg
|
||||
on 6134: 2026-11-20 10:51:17,328 - WARNING - Any intersection issue
|
||||
Attributes: _SCRAP_ID=36069, _TYPE=contour, _SCRAP=SP-AP7_Aval_01, _CLIP=on, _TAGS=6144, _SUBTYPE=None, _SCALE=4, _TEXT=None
|
||||
on 36737: 2026-11-20 10:51:22,747 - WARNING - Any intersection issue
|
||||
Attributes: _SCRAP_ID=79873, _TYPE=border, _SCRAP=SP-Explo_01_1982_01_01_01, _CLIP=on, _TAGS=2048, _SUBTYPE=visible, _SCALE=4, _TEXT=None
|
||||
on 37454: 2026-11-20 10:51:22,876 - WARNING - Any intersection issue
|
||||
Attributes: _SCRAP_ID=80711, _TYPE=border, _SCRAP=SP-Explo_09_1994_08_01_01, _CLIP=on, _TAGS=2048, _SUBTYPE=visible, _SCALE=4, _TEXT=None
|
||||
2026-11-20 10:51:23,533 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/lines2dMasked.gpkg
|
||||
2026-11-20 10:51:25,418 - INFO - All geometry are valid, nbr : 42073
|
||||
2026-11-20 10:51:25,418 - INFO - Geometric types :
|
||||
2026-11-20 10:51:25,418 - INFO - LINESTRING : 40294
|
||||
2026-11-20 10:51:25,418 - INFO - POINT : 1256
|
||||
2026-11-20 10:51:25,418 - INFO - GEOMETRYCOLLECTION : 9
|
||||
2026-11-20 10:51:25,418 - INFO - MULTILINESTRING : 511
|
||||
2026-11-20 10:51:25,418 - INFO - MULTIPOINT : 3
|
||||
2026-11-20 10:51:25,418 - INFO - Bounding box :
|
||||
2026-11-20 10:51:25,418 - INFO - xmin = 675391.336 xmax = 688036.426
|
||||
2026-11-20 10:51:25,418 - INFO - ymin = 4752172.720 ymax = 4763953.204
|
||||
2026-11-20 10:51:25,418 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:51:25,421 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:51:25,422 - WARNING - 3 deleted geometries need to be verified in lines2dMasked.gpkg file
|
||||
2026-11-20 10:51:25,426 - INFO - Clipping file : ~/SHP/QGis_GPKG_Files/areas2d_fixed.gpkg to file : ~/SHP/QGis_GPKG_Files/areas2dMasked.gpkg
|
||||
2026-11-20 10:51:25,822 - INFO - Bilan file : ~/SHP/QGis_GPKG_Files/areas2dMasked.gpkg
|
||||
2026-11-20 10:51:25,863 - INFO - All geometry are valid, nbr : 626
|
||||
2026-11-20 10:51:25,863 - INFO - Geometric types :
|
||||
2026-11-20 10:51:25,863 - INFO - POLYGON : 591
|
||||
2026-11-20 10:51:25,863 - INFO - MULTIPOLYGON : 35
|
||||
2026-11-20 10:51:25,863 - INFO - Bounding box :
|
||||
2026-11-20 10:51:25,864 - INFO - xmin = 675391.336 xmax = 688024.210
|
||||
2026-11-20 10:51:25,864 - INFO - ymin = 4752619.338 ymax = 4763953.204
|
||||
2026-11-20 10:51:25,864 - INFO - Dimensions, Z present : True M present : True
|
||||
2026-11-20 10:51:25,864 - INFO - ─────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
2026-11-20 10:51:25,864 - INFO - 626 clipped geometries in areas2d_fixed.gpkg file
|
||||
2026-11-20 10:51:25,864 - INFO - Step 3 : final summary
|
||||
2026-11-20 10:51:25,864 - INFO - Execution completed in 55.25 s
|
||||
2026-11-20 10:51:25,865 - ERROR - !!! ════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:51:25,865 - ERROR - !!! Execution completed with 1 errors
|
||||
2026-11-20 10:51:25,865 - ERROR - !!! Invalid geometry in file : areas2d,
|
||||
Geometry type: POLYGON,
|
||||
FID: 45,
|
||||
Message code: 1, Ring Self-intersection at or near point 684324.78328053525 4762578.8864441318,
|
||||
Attributes: _SCRAP_ID=5418, _SCRAP=SP-Explo_12_1998_08_12_01, _TYPE=water, _CLIP=on, _TAGS=6144, _SUBTYPE=None, _SCALE=4
|
||||
2026-11-20 10:51:25,865 - ERROR - !!! ════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:51:25,865 - WARNING - ══════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
2026-11-20 10:51:25,865 - WARNING - Execution completed with 3 warning
|
||||
2026-11-20 10:51:25,865 - WARNING - Any intersection issue
|
||||
Attributes: _SCRAP_ID=36069, _TYPE=contour, _SCRAP=SP-AP7_Aval_01, _CLIP=on, _TAGS=6144, _SUBTYPE=None, _SCALE=4, _TEXT=None
|
||||
2026-11-20 10:51:25,865 - WARNING - Any intersection issue
|
||||
Attributes: _SCRAP_ID=79873, _TYPE=border, _SCRAP=SP-Explo_01_1982_01_01_01, _CLIP=on, _TAGS=2048, _SUBTYPE=visible, _SCALE=4, _TEXT=None
|
||||
2026-11-20 10:51:25,865 - WARNING - Any intersection issue
|
||||
Attributes: _SCRAP_ID=80711, _TYPE=border, _SCRAP=SP-Explo_09_1994_08_01_01, _CLIP=on, _TAGS=2048, _SUBTYPE=visible, _SCALE=4, _TEXT=None
|
||||
2026-11-20 10:51:25,865 - WARNING - ══════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user