ThinkGeo.com    |     Documentation    |     Premium Support

Creating shapefile from scratch

Hello,


I'm looking to create a blank shapefile with v3.


Here is the code from v2 that I'm trying to migrate to v3:



      MapEngine engine = new MapEngine();
      DatabaseColumns Columns = new DatabaseColumns();
      DatabaseColumn Column1 = new DatabaseColumn();
      Column1.DecimalLength = 0;
      Column1.FieldType = FieldDataType.fdtString;
      Column1.Length = 80;
      Column1.Name = "Name";
      Columns.Add(Column1);

      engine.CreateNewShapefile(ShapeTypeEnum.Point, Path.GetDirectoryName(ShapeExFileName),
        Path.GetFileNameWithoutExtension(ShapeExFileName), Columns);
 

Thank you for your help


Patrick.



oups...


gis.thinkgeo.com/Support/Dis...fault.aspx



Let us know anything else you run into. 
  
 ThinkGeo Support