[gdal-dev] Field type detection by GeoJSON driver in the case of untidy data

Sean Gillies sean.gillies at gmail.com
Mon Sep 23 09:17:03 PDT 2024


Hi all,

The good thing about GeoJSON is that you don't need specialized GIS
software to create it. The bad thing about GeoJSON is that people create it
using software with none of the familiar GIS constraints.

I've been looking at a collection of features that have the same set of
properties (good), but one of the properties has a mix of strings (strings
of digits, specifically) and unquoted numbers (0, specifically). In
versions <= 3.5, GDAL detects this field's type to be "String". In versions
>= 3.6, the field type is "String(JSON)". Is this intended behavior? Will
all such fields be found to be "String(JSON)", or does it depend on their
content?

-- 
Sean Gillies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240923/be7246a2/attachment.htm>


More information about the gdal-dev mailing list