[gdal-dev] Shapefile driver and support for Boolean attributes

Even Rouault even.rouault at spatialys.com
Wed Mar 18 14:13:03 PDT 2015


Selon Jukka Rahkonen <jukka.rahkonen at maanmittauslaitos.fi>:

> Hi,
>
> Is there some special reason why the shapefile driver does not support
> Logical (Boolean) data type for attributes? It seems that the "L" data type
> is there in dBase III format
> https://ulisse.elettra.trieste.it/services/doc/dbase/DBFstruct.htm#C1.4 and
> even well defined Value: "? Y y N n T t F f (? when not initialized)".

Jukka,

This is a good point. It could be added indeed. There's some support from it in
shapelib. I'm wondering how well it is supported by other (non GDAL based)
implementations however. Existing OGR would recognize it as a String(1) as far
as I can see.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list