-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Geoserver importer fails to import GeoJSON with properties containing string arrays #323
Comments
The topic is ... complicated, there are multiple issues from different angles. First one, you cite the GeoJSON example as a "valid GeoJSON file" according to spec. GeoTools will not be able to handle a lot of valid GeoJSON files, as they are completely schemaless, change shape for each feature, be arbitrarily nested and so on. Now, can we handle arrays? GeoTools has some growing support for them, as values in a simple feature. So, on 2.21.x, we have the importer using gt-geojsonstore, and on 2.19.x, we have it use gt-geojson. Two separate code bases.
I guess we want to have a fix for 2.19.x, but also have it working in the future, right? Based on the assumption are some guess-stimates:
So a grand total of 3.5 days. I know it's a lot, but we have a library switch in the middle and some basic infrastructure that's missing and needs to be built. |
After some consideration, tightened the estimates a bit (down to 3.5 days) |
I don't know if we want to keep this open, beyond the original requirement for GeoNode. |
The importer raises an exception when trying to import a GeoJSON with properties containing arrays of strings, as in this example.
The GeoJSON specification (RFC7947) says that any valid JSON object is supported as property values, and the JSON data interchange format (RFC7159) includes arrays.
Here below the relevant section of the error log.
Apparently the importer detects a mix of strings and arrays, but I couldn't spot this mixture in the test file.
The text was updated successfully, but these errors were encountered: