Hi all,
I have one shp file consisting of outlines of buildings. When I use converter.py to convert shp file into i2s file, it reported an error like:
Traceback (most recent call last):
File "/home/oem/Telemac/v8p2r0/scripts/python3/converter.py", line 295, in <module>
main()
File "/home/oem/Telemac/v8p2r0/scripts/python3/converter.py", line 273, in main
write_poly_txt(poly, options.txt_file)
File "/home/oem/Telemac/v8p2r0/scripts/python3/data_manip/extraction/shapefile_reader.py", line 160, in write_poly_txt
ffile.write("{} {} \n".format(point[0], point[1]))
IndexError: list index out of range
But one i2s file was generated anyway, but this file cannot be opened by bluekenue. I compared the format of the converted i2s file with the one directly generated by BK, it's clear that the format is quite different yet I have no idea how to fix it. May you please check the converted i2s file?
Besides, if it's not the expected way convert shp file, may you please tell me which tool works?
Hereafter is the screenshot of the converted i2s file.
Regards,
R.Wei