CNES/swot-hydrology-toolbox

How to solve the problems of "TopologyException: Input geom 1 is invalid: Self-intersection at or near point" and "Failed to fetch spatial reference on layer lake_db to build transformer"?

SingyuTang opened this issue · 0 comments

Please tell me what is the reason why many "TopologyException: Input geom 1 is invalid" errors occurred when I executed the command "python $SWOT_HYDROLOGY_TOOLBOX/sisimp/proc_sisimp.py rdf/parameter_sisimp.rdf --logfile" and what impact does this have on the results? How can I solve this problem?

[INFO] [sisimp_function] [make_pixel_cloud] == make_pixel_cloud ==
[INFO] [sisimp_function] [make_pixel_cloud] > Working on the Left swath
[INFO] [write_polygons] [reproject_shapefile] == reproject_shapefile ==
[INFO] [write_polygons] [reproject_shapefile] Near_range =  903439
[INFO] [write_polygons] [reproject_shapefile] Near_range =  903439
[INFO] [write_polygons] [reproject_shapefile] There are 11 feature(s) crossing Left swath
[INFO] [write_polygons] [reproject_shapefile] Processing 9 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 18 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 27 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 36 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 45 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 63 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 72 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 81 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [reproject_shapefile] Processing 90 %
ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -150.57800896892502 63.784581539582277 0 at -150.57800896892502 63.784581539582277 0
[INFO] [write_polygons] [compute_pixels_in_water] == compute_pixels_in_water / all polygons ==
Warning 1: Failed to fetch spatial reference on layer lake_db to build transformer, assuming matching coordinate systems.
Warning 1: Failed to fetch spatial reference on layer lake_db to build transformer, assuming matching coordinate systems.
Warning 1: Failed to fetch spatial reference on layer lake_db to build transformer, assuming matching coordinate systems.
[INFO] [write_polygons] [compute_pixels_in_water] Compute lakes labels
[INFO] [sisimp_function] [make_pixel_cloud] -> water_pixels : nb_lignes=4575 nb_col=804