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
Describe the bug
When using the GeoAccessor.to_featureclass to export a spatial dataframe to a shapefile, if you pass sanitize_columns as True it converts all the column names to lowercase.
The sanitize_columns param is True by default so this happens automatically.
Expected behavior
I expected the columns names to be sanitized of special characters, not converted to lowercase.
Platform (please complete the following information):
OS: Windows 10
Python API Version [e.g. 2.1.0.4
Additional context
Is this expected behaviour? If so please update the docs to specify this side effect. It would be better to have this parameter set to False by default, as it behaves now, the end shapefile has been altered in a way that the programmer may not have intended. (The GeoAccessor.to_featurelayer has it's sanitize_columns default set to False).
Describe the bug
When using the GeoAccessor.to_featureclass to export a spatial dataframe to a shapefile, if you pass
sanitize_columns
asTrue
it converts all the column names to lowercase.The
sanitize_columns
param isTrue
by default so this happens automatically.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the columns names to be sanitized of special characters, not converted to lowercase.
Platform (please complete the following information):
2.1.0.4
Additional context
Is this expected behaviour? If so please update the docs to specify this side effect. It would be better to have this parameter set to
False
by default, as it behaves now, the end shapefile has been altered in a way that the programmer may not have intended. (TheGeoAccessor.to_featurelayer
has it'ssanitize_columns
default set toFalse
).GeoAccessor.to_featureclass
Related issue: #923
The text was updated successfully, but these errors were encountered: