コード例 #1
0
ファイル: frmGeoMap.cs プロジェクト: frinehrt/GeoFormMapper
        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);
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     ShapeExtractor.ShapeExtractor oSE = new ShapeExtractor.ShapeExtractor("C:\\Users\\1088091\\Desktop\\Shape Files");
 }