Exemplo n.º 1
0
        public void MapFishingGround(string grid25Name, fadUTMZone utmZone, string pointName = "", bool testIfInland = false)
        {
            FishingGroundMappingHandler fgmh = new FishingGroundMappingHandler(axMap.GeoProjection);

            fgmh.MapLayersHandler = _mapLayersHandler;
            fgmh.MapFishingGround(grid25Name, utmZone, pointName, testIfInland);
        }
Exemplo n.º 2
0
        public void MapFishingGround(string samplingGuid, fadUTMZone utmZone)
        {
            FishingGroundMappingHandler fgmh = new FishingGroundMappingHandler(axMap.GeoProjection);

            fgmh.MapLayersHandler = _mapLayersHandler;
            fgmh.MapSamplingFishingGround(samplingGuid, utmZone, "Fishing ground");
            MapControl.Redraw();
        }
Exemplo n.º 3
0
        private void MapCheckedYears()
        {
            var fgmh = new FishingGroundMappingHandler();

            fgmh.MapControl       = global.MappingForm.MapControl;
            fgmh.MapLayersHandler = global.MappingForm.MapLayersHandler;
            var samplingYears = "";

            foreach (ListViewItem lvi in lvYears.Items)
            {
                if (lvi.Checked)
                {
                    samplingYears += $"{lvi.Text},";
                }
            }
            if (samplingYears.Length > 0)
            {
                samplingYears = samplingYears.Trim(',');
            }

            if (global.MappingForm.NumLayers() > 0)
            {
                fgmh.set_GeoProjection(global.MappingForm.GeoProjection);
                bool aggregated  = chkAggregate.Checked;
                bool notInclude1 = chkNotInclude1.Checked;
                switch (_treeLevel)
                {
                case "target_area":
                    fgmh.MapFishingGrounds(_parentForm.TargetAreaGuid, samplingYears, FishingGrid.UTMZone, aggregated, notInclude1);
                    break;

                case "landing_site":
                    fgmh.MapFishingGrounds(_parentForm.TargetAreaGuid, samplingYears, FishingGrid.UTMZone, aggregated, notInclude1, _parentForm.LandingSiteGUID);
                    break;

                case "gear":
                    fgmh.MapFishingGrounds(_parentForm.TargetAreaGuid, samplingYears, FishingGrid.UTMZone, aggregated, notInclude1, _parentForm.LandingSiteGUID, _parentForm.GearVariationGUID);
                    break;

                case "sampling":
                    labelTitle.Text = $"Mapping of fishing effort on {_parentForm.SamplingMonth} using {_parentForm.GearVariationName} in {_parentForm.LandingSiteName}, {_parentForm.TargetAreaName}";
                    break;
                }
            }
        }