You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should have looked at the open issues before banging my head against this... This one is probably beyond me but I'll share what I found.
In the shapefile that I was using to test, the last item to come out as value in read_dbf is <Buffer 1a>, the unhelpful unicode 26.
Doing something foolish like return value && value.toString().trim().charCodeAt(0) !== 26 does lead to the desired json output — but it seems like the problem is further upstream and should be solved in a better way. If you have any suggestions on why that last buffer is coming out at all, I can look into it more.
Normally this object is ignored because the shp parser ends correctly; but you can notice it if you parse the dbf file separately.
The text was updated successfully, but these errors were encountered: