Exemplo n.º 1
0
 public bool ParseMainFile()
 {
     this.OpenFileStream(this.Path + ".shp");
     if (IsStreamReadable())
     {
         this.Shpfile.SetHeader(ShapefileReaderManager.GetHeader(this.readStream));
         this.Shpfile.SetRecords(ShapefileReaderManager.GetAllMainRecords(this.readStream));
         this.CloseFileStream();
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public bool ReadMainHeader(bool keepOpen)
 {
     this.OpenFileStream(this.Path + ".shp");
     if (IsStreamReadable())
     {
         this.Shpfile.SetHeader(ShapefileReaderManager.GetHeader(this.readStream));
         if (!keepOpen)
         {
             this.CloseFileStream();
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }