예제 #1
0
        public IImageSource GridToImage2(IGridSource grid, RasterColorScheme scheme, GridProxyFormat imageFormat,
                                         bool inRam)
        {
            var img = _utils.GridToImage2(grid.GetInternal(), scheme.GetInternal(), (tkGridProxyFormat)imageFormat, inRam, null);

            return(BitmapSource.Wrap(img));
        }
예제 #2
0
 public ComponentArtGridHandler(Grid grid, IGridSource <TElement> source, bool dataBind)
 {
     this.swither         = new Switcher <ElementCounter>(Switcher <ElementCounter> .CurrentValue ?? new ElementCounter());
     this._previousFilter = string.Empty;
     this._previousSort   = string.Empty;
     Assert.ArgumentNotNull(grid, "grid");
     Assert.ArgumentNotNull(source, "source");
     this._grid   = grid;
     this._source = source;
     this.InitializeGrid(dataBind);
 }
예제 #3
0
        /// <summary>
        /// Fills the grid.
        /// </summary>
        /// <param name="source">The source.</param>
        public void FillGrid(IGridSource <List <string> > source)
        {
            if (this.doEncode)
            {
                foreach (GridColumn column in this.Grid.Levels[0].Columns)
                {
                    column.DataField = HttpUtility.UrlEncode(column.DataField);
                }

                this.doEncode = false;
            }

            ComponentArtGridHandler <List <string> > .Manage(this.Grid, source, false);
        }
예제 #4
0
        /// <summary>
        /// Fills the grid.
        /// </summary>
        /// <param name="source">The source.</param>
        public void FillGrid(IGridSource<List<string>> source)
        {
            if (this.doEncode)
              {
            foreach (GridColumn column in this.Grid.Levels[0].Columns)
            {
              column.DataField = HttpUtility.UrlEncode(column.DataField);
            }

            this.doEncode = false;
              }

              ComponentArtGridHandler<List<string>>.Manage(this.Grid, source, false);
        }
예제 #5
0
 public static void Manage(Grid grid, IGridSource <TElement> source, bool dataBind)
 {
     Assert.ArgumentNotNull(grid, "grid");
     Assert.ArgumentNotNull(source, "source");
     new ComponentArtGridHandler <TElement>(grid, source, dataBind);
 }
예제 #6
0
 public static Grid GetInternal(this IGridSource grid)
 {
     return(grid.InternalObject as Grid);
 }
예제 #7
0
        public IFeatureSet ShapeToShapeZ(IFeatureSet shapefile, IGridSource grid)
        {
            var sf = _utils.ShapeToShapeZ(shapefile.GetInternal(), grid.GetInternal());

            return(sf != null ? new FeatureSet(sf) : null);
        }
예제 #8
0
        public IGridSource GridToGrid(IGridSource grid, DataType outDataType)
        {
            var result = _utils.GridToGrid(grid.GetInternal(), (GridDataType)outDataType);

            return(result != null ? new GridSource(result) : null);
        }
예제 #9
0
        public IFeatureSet GridToShapefile(IGridSource grid, IGridSource connectionGrid = null)
        {
            var sf = _utils.GridToShapefile(grid.GetInternal(), connectionGrid.GetInternal());

            return(sf != null ? new FeatureSet(sf) : null);
        }
예제 #10
0
 public Image GridToImage(IGridSource grid, RasterColorScheme scheme)
 {
     return(_utils.GridToImage(grid.GetInternal(), scheme.GetInternal()));
 }
예제 #11
0
 public bool GridStatisticsForPolygon(IGridSource grid, GridSourceHeader header, IEnvelope gridExtents,
                                      IGeometry polygon, double nodataValue, ref double meanValue, ref double minValue, ref double maxValue)
 {
     return(_utils.GridStatisticsForPolygon(grid.GetInternal(), header.GetInternal(), gridExtents.GetInternal(),
                                            polygon.GetInternal(), nodataValue, ref meanValue, ref minValue, ref maxValue));
 }
예제 #12
0
 public bool GridStatisticsToShapefile(IGridSource grid, IFeatureSet sf, bool selectedOnly, bool overwriteFields)
 {
     return(_utils.GridStatisticsToShapefile(grid.GetInternal(), sf.GetInternal(), selectedOnly, overwriteFields));
 }
예제 #13
0
 public bool ClipGridWithPolygon(IGridSource inputGrid, IGeometry poly, string resultGridfile, bool keepExtents)
 {
     return(_utils.ClipGridWithPolygon2(inputGrid.GetInternal(), poly.GetInternal(), resultGridfile, keepExtents));
 }