We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a small problem with feature properties from imported shapes.
The from_shapefile function tries to use json.loads to append the property value and fallback to the actual value in case of failure.
django-geostore/geostore/import_export/imports.py
Lines 49 to 55 in 4dc40a0
This is fine except that, if have a string property with only numbers json.loads will change it to integer as this example:
>>> a = '123' >>> type(json.loads(a)) <class 'int'>
I guess this is not ideal for cases that depend o the property type to be precise, as mine is.
Wouldn't be a better approach to store properties as they came from fiona?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a small problem with feature properties from imported shapes.
The from_shapefile function tries to use json.loads to append the property value and fallback to the actual value in case of failure.
django-geostore/geostore/import_export/imports.py
Lines 49 to 55 in 4dc40a0
This is fine except that, if have a string property with only numbers json.loads will change it to integer as this example:
I guess this is not ideal for cases that depend o the property type to be precise, as mine is.
Wouldn't be a better approach to store properties as they came from fiona?
The text was updated successfully, but these errors were encountered: