You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need in c# when I create a shapefile to define the length of the characters in integer field, if I use (int32) in the code I am created in the .dbf a length equal to 11, here is my code:
FeatureSet fsSet = new FeatureSet(FeatureType.Line);
fsSet.CoordinateType = CoordinateType.Z;
Feature f = new Feature();
System.Data.DataColumn DIAMETER = new System.Data.DataColumn("DIAMETER", typeof(Int32));
fsSet.DataTable.Columns.Add(DIAMETER);
DotSpatial.Topology.Point point = new DotSpatial.Topology.Point(1, 1, 0);
Feature f = new Feature(point);
fsSet.Features.Add(f);
f.DataRow.BeginEdit();
f.DataRow["DIAMETER"] = 32;
f.DataRow.EndEdit();
fsSet.Projection = KnownCoordinateSystems.Projected.UtmWgs1984.WGS1984UTMZone33N;
fsSet.SaveAs(lbPercorso.Text + "\XXXXX.shp", true);
The text was updated successfully, but these errors were encountered:
I need in c# when I create a shapefile to define the length of the characters in integer field, if I use (int32) in the code I am created in the .dbf a length equal to 11, here is my code:
FeatureSet fsSet = new FeatureSet(FeatureType.Line);
fsSet.CoordinateType = CoordinateType.Z;
Feature f = new Feature();
System.Data.DataColumn DIAMETER = new System.Data.DataColumn("DIAMETER", typeof(Int32));
fsSet.DataTable.Columns.Add(DIAMETER);
DotSpatial.Topology.Point point = new DotSpatial.Topology.Point(1, 1, 0);
Feature f = new Feature(point);
fsSet.Features.Add(f);
f.DataRow.BeginEdit();
f.DataRow["DIAMETER"] = 32;
f.DataRow.EndEdit();
fsSet.Projection = KnownCoordinateSystems.Projected.UtmWgs1984.WGS1984UTMZone33N;
fsSet.SaveAs(lbPercorso.Text + "\XXXXX.shp", true);
The text was updated successfully, but these errors were encountered: