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

Ben Discoe ben at vterrain.org
Wed Jun 25 21:09:39 EDT 2003

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...?


More information about the Gdal-dev mailing list