FeatureTypeHandler handle conflicting types Double and Long
Description
I face the same issue mentionned in the following PR :
In my usecase, I am trying to validate geojson schema for many files. Some of those files include a property that is flagged as Long (example : 363) but sometimes in the same file the property will also have values flagged as Double (example : 5.48). This will produce an IllegalStateException in the FeatureTypeHandler primitive method.
I would like to know if a fix can be provided for such cases.
Environment
None
Activity
Show:
Antoine Lecacheur January 8, 2024 at 10:50 AM
Thanks for your reply.
I made a PR here
Andrea Aime January 3, 2024 at 9:54 AM
It can, if you make a pull request with the required code changes, along with the mandatory test ensuring the fix works, and it won’t regress in the future due to other code changes. That PR failed to provide a test and was eventually closed.
I face the same issue mentionned in the following PR :
In my usecase, I am trying to validate geojson schema for many files. Some of those files include a property that is flagged as Long (example : 363) but sometimes in the same file the property will also have values flagged as Double (example : 5.48). This will produce an IllegalStateException in the FeatureTypeHandler primitive method.
I would like to know if a fix can be provided for such cases.