コード例 #1
0
ファイル: GisUtils.cs プロジェクト: zylimit/MapWindow5
 public Grid ShapefileToGrid(IFeatureSet shapefile, bool useShapefileBounds = true,
                             GridSourceHeader gridHeader = null, double cellsize = 30, bool useShapeNumber = true, short singleValue = 1)
 {
     return(_utils.ShapefileToGrid(shapefile.GetInternal(), useShapefileBounds,
                                   gridHeader.GetInternal(), cellsize, useShapeNumber, singleValue));
 }
コード例 #2
0
ファイル: WrapperHelper.cs プロジェクト: zylimit/MapWindow5
 public static GridHeader GetInternal(this GridSourceHeader header)
 {
     return(header.InternalObject as GridHeader);
 }
コード例 #3
0
ファイル: GisUtils.cs プロジェクト: zylimit/MapWindow5
 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));
 }