private void AddShapeExtractorLayer(string pstrShapeExtractorFileName) { ShapeExtractor.ShapeExtractor oShapeExtractor = new ShapeExtractor.ShapeExtractor(pstrShapeExtractorFileName); oShapeExtractor.ShapeZipFile.Extract(); string strFileName = oShapeExtractor.ShapeZipFile.Contents.First(x => x.Value.IsShapeFile).Value.ExtractedFile.FullName; clsMapInformation oMI = new clsMapInformation(); oMI.MapSource = enmMapSource.ShapeExtractorFile; oMI.MapName = Path.GetFileNameWithoutExtension(pstrShapeExtractorFileName); oMI.SourcePathName = pstrShapeExtractorFileName; //fdr add to dictionary //fdr read stzyles AddShapeFileLayer(strFileName, true); }
private void button1_Click(object sender, EventArgs e) { ShapeExtractor.ShapeExtractor oSE = new ShapeExtractor.ShapeExtractor("C:\\Users\\1088091\\Desktop\\Shape Files"); }