示例#1
0
        void LoadDataset(string name)
        {
            FlushDataset();
            var dir = Path.Combine(SiteRoot, name);

            if (!Directory.Exists(dir))
            {
                throw new Exception($"The site directory for {name} doesn't exist");
            }
            Dataset = new SiteDataset(dir);
            UpdateFromLayers(Dataset.Layers);
            MapView.Transform = new MapView.DisplayTransform {
                OffsetX = 0, OffsetY = 0, Scale = 1f
            };
        }
示例#2
0
 private void test1ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var d = new SiteDataset(@"C:\RP\tiles\sp\landing_site_datasets\site_001");
 }
示例#3
0
 void FlushDataset()
 {
     Dataset?.Dispose();
     Dataset = null;
     lvLayers.Items.Clear();
 }