/// <summary>
/// 获取E00文件名称(arc、polgon)等
/// </summary>
/// <param name="strCoveragePath"></param>
/// <returns></returns>
public static string GetE00FeatNameString(string strCoveragePath)
{
try
{
StreamReader objReader = new StreamReader(strCoveragePath);
string sLine = "";
ArrayList LineList = new ArrayList();
int count = 0;
while (sLine != null && count < 3)
{
sLine = objReader.ReadLine();
if (sLine != null && !sLine.Equals(""))
LineList.Add(sLine);
count++;
}
objReader.Close();
int pr = LineList[1].ToString().IndexOf(" ");
string text = string.Empty;
if (LineList[1].ToString().Substring(0, pr) == "ARC")
{
text = "ARC";
}
else if (LineList[1].ToString().Substring(0, pr) == "LAB")
{
text = "POINT";
}
else if (LineList[1].ToString().Substring(0, pr) == "PAL")
{
text = "POLYGON";
}
return text;
}
catch
{
return "";
}
}
转载于:https://www.cnblogs.com/pennygiser/archive/2012/05/30/2526507.html