示例#1
0
        /// <summary>
        /// Opens shape-file.
        /// </summary>
        /// <param name="messageFailure">Description message failure
        /// (can be null if problem absent).</param>
        /// <returns>Data provider.</returns>
        static private IDataProvider _OpenSHP(out string messageFailure)
        {
            SHPProvider provider  = new SHPProvider();
            bool        successed = provider.Init(_filePath, out messageFailure);

            return(successed? provider : null);
        }
 /// <summary>
 /// Opens shape-file.
 /// </summary>
 /// <param name="messageFailure">Description message failure
 /// (can be null if problem absent).</param>
 /// <returns>Data provider.</returns>
 private static IDataProvider _OpenSHP(out string messageFailure)
 {
     SHPProvider provider = new SHPProvider();
     bool successed = provider.Init(_filePath, out messageFailure);
     return successed? provider : null;
 }