Beispiel #1
0
 public ShapeFileReader(string file, IDbConnection conn)
 {
     fileName  = Path.GetFileNameWithoutExtension(file).ToString();
     dirName   = Path.GetDirectoryName(file).ToString();
     this.file = file;
     attrMode  = ShapeAttrMode.ReadAttrByRecord;
     this.conn = conn;
     Open();
 }
Beispiel #2
0
        public ShapeFileReader(string file)
        {
            fileName  = Path.GetFileNameWithoutExtension(file).ToString();
            dirName   = Path.GetDirectoryName(file).ToString();
            this.file = file;
            attrMode  = ShapeAttrMode.ReadNothing;
//          attrMode = ShapeAttrMode.ReadAttrByRecord;
            Open();
        }
Beispiel #3
0
        public ShapeFileReader(BinaryReader br)
        {
            this.br = br;
            if (br.BaseStream.CanRead)
            {
                opened = true;
            }

            attrMode = ShapeAttrMode.ReadNothing;
        }
Beispiel #4
0
 public ShapeFileReader(string file, IDbConnection conn, DataTable dt)
 {
     fileName  = Path.GetFileNameWithoutExtension(file).ToString();
     dirName   = Path.GetDirectoryName(file).ToString();
     this.conn = conn;
     this.file = file;
     this.dt   = dt;
     attrMode  = ShapeAttrMode.ReadAllTable;
     this.conn = conn;
     Open();
 }