Open swiss-knight opened 1 year ago
So it's this part of the code that throws the error:
...which means that you'll need to change the tin_pattern
regex (or maybe better, have a second regex option for empty wkt files)
Questions for you:
I'm confused about why you want to do this. meshio doesn't really have a concept of an empty mesh, but you can kind of hack an empty mesh like this: meshio.Mesh(np.array([]), np.array([]))
. Is that similar to what you wanted?
Hello,
I'm facing troubles when trying to load a text file containing an empty, yet valid TIN as a WKT string using
meshio==5.3.4
in Python3.10.6
on Ubuntu 22.04.1 LTS.Everything works fine for files containing data, but empty TIN strings seem to issue an error. The WKT string in such file is as follow:
(it may also be:
TIN Z EMPTY
)Both are valid PostGIS 3.3+ format:
This is a reminder on the current empty geometries in PostGIS, both in WKT and hex WKB:
and this is my current Traceback when I try to load the file containing an empty WKT TIN string:
which leads to:
and:
Could it be possible to consider empty, yet valid WKT TIN strings as well?
Many thanks for your help! Warm Regards.