node-gdal
node-gdal copied to clipboard
How to add a field with OGRFieldSubType
Just wondering if gdal.FieldDefn
supports assigning a sub-field type. I have been unable to find any examples online. I want to add a boolean field. It appears that I need to create an OFTInteger field and assign an OFSTBoolean subtype. Is this possible using node-gdal? Thanks
outputLayer.fields.add(new gdal.FieldDefn(outFieldName, gdal.OFTInteger // <-- boolean?))