node-gdal icon indicating copy to clipboard operation
node-gdal copied to clipboard

How to add a field with OGRFieldSubType

Open taylorendicott opened this issue 6 years ago • 1 comments

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

taylorendicott avatar May 22 '18 01:05 taylorendicott