[Gdal-dev] GDAL/Shapelib support for "Boolean" fields

Frank Warmerdam warmerdam at pobox.com
Thu Jun 26 09:10:18 EDT 2003

Ben Discoe wrote:

> I ran into trouble using Shapelib to read some SHP files today.  It
> turns out that Shapelib defines the following fieldtypes:
>   FTString = 0
>   FTInteger = 1
>   FTDouble = 2
>   FTInvalid = 3
> However, SHP appears to actually support a "Boolean" field type as well.
> ArcView lets you create such a field, and then Shapelib tells me the
> boolean field is FTInvalid.
> This would probably be an easy thing to add support for.  Let me know if
> i should take a stab at implementing it myself, or...?


Shapelib supports an FTLogical type which is intended to be for booleans.
I am not sure if it is well integrated at the OGR level.  Could you send me
sample dataset not reported properly by Shapelib?

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Gdal-dev mailing list