This project is read-only.

How to set the length of a field in a shapefile?

Mar 17, 2011 at 12:35 PM

I created a shp by  using DataManager.CreateVector(),

used following code to add a field ,

DataColumn tmpCol = new DataColumn();
tmpCol.ColumnName = "int2";
tmpCol.DataType =  System.Type.GetType("System.Int32");


but i can't set the length of the field , the length of an int-type field is 11 by default ,and a string-type field is 255,

how can i set this?