Пример #1
0
 /// <summary>
 /// Gets the stream from the
 /// </summary>
 /// <returns></returns>
 protected Stream OpenGridTableStream()
 {
     if (UriEx.IsFile(_uri))
     {
         return(File.OpenRead(_uri.LocalPath));
     }
     throw new NotSupportedException();
 }
Пример #2
0
 private Stream OpenLasStream()
 {
     if (UriEx.IsFile(_uri))
     {
         var uriLas = _uri.LocalPath;
         uriLas = Path.ChangeExtension(uriLas, ".las");
         return(File.OpenRead(uriLas));
     }
     throw new NotSupportedException();
 }