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
Usually, we want to plot the shapes and not care too much about the correctness of decoded .dbf file. But the current behavior: plotting fails if the default encoding does not match the one used for saving .dbf file.
I propose to add an argument to the readshapefile:
mp.readshapefile(..., encoding_errors="strict") # I guess the possible values are 'ignore', 'replace' and 'backslashreplace'
Currently, this is hardcoded to 'strict' inside the readshapefile method (i.e. default in the Reader constructor).
I could try to submit a PR at some point.
The text was updated successfully, but these errors were encountered:
Usually, we want to plot the shapes and not care too much about the correctness of decoded .dbf file. But the current behavior: plotting fails if the default encoding does not match the one used for saving .dbf file.
I propose to add an argument to the readshapefile:
Currently, this is hardcoded to 'strict' inside the
readshapefile
method (i.e. default in theReader
constructor).I could try to submit a PR at some point.
The text was updated successfully, but these errors were encountered: