Beispiel #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));
        }
Beispiel #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);
 }
Beispiel #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);
        }
        /// <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);
        }
Beispiel #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);
 }
Beispiel #6
0
 public static Grid GetInternal(this IGridSource grid)
 {
     return(grid.InternalObject as Grid);
 }
Beispiel #7
0
        public IFeatureSet ShapeToShapeZ(IFeatureSet shapefile, IGridSource grid)
        {
            var sf = _utils.ShapeToShapeZ(shapefile.GetInternal(), grid.GetInternal());

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

            return(result != null ? new GridSource(result) : null);
        }
Beispiel #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);
        }
Beispiel #10
0
 public Image GridToImage(IGridSource grid, RasterColorScheme scheme)
 {
     return(_utils.GridToImage(grid.GetInternal(), scheme.GetInternal()));
 }
Beispiel #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));
 }
Beispiel #12
0
 public bool GridStatisticsToShapefile(IGridSource grid, IFeatureSet sf, bool selectedOnly, bool overwriteFields)
 {
     return(_utils.GridStatisticsToShapefile(grid.GetInternal(), sf.GetInternal(), selectedOnly, overwriteFields));
 }
Beispiel #13
0
 public bool ClipGridWithPolygon(IGridSource inputGrid, IGeometry poly, string resultGridfile, bool keepExtents)
 {
     return(_utils.ClipGridWithPolygon2(inputGrid.GetInternal(), poly.GetInternal(), resultGridfile, keepExtents));
 }