Ejemplo n.º 1
0
        public ShpReader(string shpFilePath)
        {
            string shxFilePath = shpFilePath.Substring(0, shpFilePath.Length - 3) + ".shx";

            _shxRecords    = new ShxReader().ReadShx(shxFilePath);
            _readStream    = new FileStream(shpFilePath, FileMode.Open, FileAccess.Read, FileShare.Read);
            this.ShpHeader = ShpUtil.GetHeader(_readStream);
        }
Ejemplo n.º 2
0
 public ShpReader(Stream shpFileStream, List <ShxRecord> shxRecords)
 {
     _shxRecords    = shxRecords;
     _readStream    = shpFileStream;
     this.ShpHeader = ShpUtil.GetHeader(_readStream);
 }