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
Also see: qgis/QGIS#51911
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": "astring"} }, { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": 42} }, { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": {"nested": 75}} } ] }
ogrinfo -al -q test_string_first.json
OGRFeature(gh_51911_string_first):0 prop0 (String) = astring POINT (102.0 0.5) OGRFeature(gh_51911_string_first):1 prop0 (String) = 42 POINT (102.0 0.5) OGRFeature(gh_51911_string_first):2 prop0 (String) = { "nested": 75 } POINT (102.0 0.5)
But, moving the string at the second place:
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": 42} }, { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": "astring"} }, { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": {"nested": 75}} } ] }
ogrinfo -al -q test_string_second.json
Layer name: gh_51911 OGRFeature(gh_51911):0 prop0 (String(JSON)) = 42 POINT (102.0 0.5) OGRFeature(gh_51911):1 prop0 (String(JSON)) = astring POINT (102.0 0.5) OGRFeature(gh_51911):2 prop0 (String(JSON)) = { "nested": 75 } POINT (102.0 0.5)
The text was updated successfully, but these errors were encountered:
GEOJSON: fix mixed type field not flagged as JSON if first is a string
f4b34e5
Fix issue OSGeo#7313
GEOJSON: fix mixed type field not flagged as JSON if first occurrence…
a4eebea
… is a string (fixes #7313) (#7315)
f935d6e
Fix issue #7313
Merge pull request #7323 from OSGeo/backport-7315-to-release/3.6
a2d6089
[Backport release/3.6] GEOJSON: fix mixed type field not flagged as JSON if first occurrence is a string (fixes #7313)
elpaso
Successfully merging a pull request may close this issue.
Also see: qgis/QGIS#51911
ogrinfo -al -q test_string_first.json
OGRFeature(gh_51911_string_first):0 prop0 (String) = astring POINT (102.0 0.5) OGRFeature(gh_51911_string_first):1 prop0 (String) = 42 POINT (102.0 0.5) OGRFeature(gh_51911_string_first):2 prop0 (String) = { "nested": 75 } POINT (102.0 0.5)
But, moving the string at the second place:
ogrinfo -al -q test_string_second.json
Layer name: gh_51911 OGRFeature(gh_51911):0 prop0 (String(JSON)) = 42 POINT (102.0 0.5) OGRFeature(gh_51911):1 prop0 (String(JSON)) = astring POINT (102.0 0.5) OGRFeature(gh_51911):2 prop0 (String(JSON)) = { "nested": 75 } POINT (102.0 0.5)
The text was updated successfully, but these errors were encountered: