Good morning Everyone!
Now I create, open and close the pointtype shape file with 10 fields.
-
CreateNew and add 10 fields
sf = new Shapefile(); sf.CreateNew(fileName, ShpfileType.SHP_POINT); sf.EditAddField("NAME", FieldType.STRING_FIELD, 256, 256); sf.EditAddField("TxPower", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("TxAntGain", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("RxAntGain", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("TxLoss", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("RxLoss", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("Latitude", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("Longitude", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("TxAntHeight", FieldType.DOUBLE_FIELD, 12, 15); sf.EditAddField("RxAntHeight", FieldType.DOUBLE_FIELD, 12, 15);
-
open the shape file with QGIS3.34.4 and check the table of shapefile
-
9th, 10th fieldname are clipped
TxAntHeight → TxAntHeigh
RxAntHeight → RxAntHeigh
Field name seems have a length-limit with 10 char
Is it bug or is there something worng in my code?