AddField

Top  Previous  Next

Call this method to add fields after creating the header.

 

Syntax: AddField(Fieldname: string; Field: TGISField; Width, decimals: byte)

 

SHP / DBF do not support field names with more than 10 characters.

 

Width should be specified for fChar and fDecimal.

Width is a maximum of 254 for fChar in DBF, EFAL, MIF, SHP and MITAB.

For GeoJSON, KML and GML there is no limit and width is ignored.

 

Decimals should be specified for fDecimal.