Beispiel #1
0
        public void CreateLayer()
        {
            var model = new CreateLayerModel();

            if (_context.Container.Run <CreateLayerPresenter, CreateLayerModel>(model))
            {
                var fs = new FeatureSet(model.GeometryType, model.ZValueType);
                fs.Projection.CopyFrom(_context.Map.Projection);

                if (!model.MemoryLayer)
                {
                    fs.SaveAsEx(model.Filename, false);
                }

                fs.InteractiveEditing = true;

                _layerService.AddDatasource(fs, model.LayerName);
            }
        }