///<summary> ///根据给定参数创建相应的栅格数据集 ///</summary> /// <param name="pszpath">栅格数据集的路径,可以为空字符串,当为空时创建虚拟对象</param> /// <param name="iWidth">栅格数据集的宽度</param> /// <param name="iHeight">栅格数据集的高度</param> /// <param name="ibandCount">栅格数据集之波段数</param> /// <param name="edatatype">数据类型</param> /// <param name="erasterType">创建相应对象选项,如Tif,img等(PNG\JPG CrateCopy)</param> /// <returns>栅格数据集指针<returns> public static EarthView.World.Spatial2D.Raster.RasterDataSet Create(string pszpath, int iWidth, int iHeight, int ibandCount, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE edatatype, EarthView.World.Spatial2D.Raster.EVDATASETFORMAT erasterType) { IntPtr __ptr = EarthView_World_Spatial2D_Raster_CRasterFileOperator_create_CRasterDataSet_EVString_ev_int32_ev_int32_ev_int32_EVRasterDataType_EVDataSetFormat(pszpath, iWidth, iHeight, ibandCount, edatatype, erasterType); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial2D.Raster.RasterDataSet csObj = new EarthView.World.Spatial2D.Raster.RasterDataSet(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CRasterDataSet"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial2D.Raster.RasterDataSet; csObj.BindNativeObject(__ptr, "CRasterDataSet"); } return(csObj); }
public int CreateSlope(EarthView.World.Spatial2D.Raster.RasterDataSet psrcData, byte[] pszDstFile, double scale, int slopeFormat, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE eDataType, byte[] pszFormat, int NoDataFlag) { int ret = EarthView_World_Spatial2D_Analyst_CRasterDataAnalysis_CreateSlope_ev_int32_CRasterDataSet_char_double_int_EVRasterDataType_char_int(this.NativeObject, object.Equals(psrcData, null) ? IntPtr.Zero : psrcData.NativeObject, pszDstFile, scale, slopeFormat, eDataType, pszFormat, NoDataFlag); return(ret); }
private static extern IntPtr EarthView_World_Spatial2D_Raster_CRasterFileOperator_create_CRasterDataSet_EVString_ev_int32_ev_int32_ev_int32_EVRasterDataType_EVDataSetFormat(string pszpath, int iWidth, int iHeight, int ibandCount, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE edatatype, EarthView.World.Spatial2D.Raster.EVDATASETFORMAT erasterType);
private static extern int EarthView_World_Spatial2D_Analyst_CRasterDataAnalysis_CreateSlope_ev_int32_CRasterDataSet_char_double_int_EVRasterDataType_char_int(IntPtr pNativeObject, IntPtr psrcData, byte[] pszDstFile, double scale, int slopeFormat, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE eDataType, byte[] pszFormat, int NoDataFlag);
public int CreateSlope(byte[] pszSrcFile, byte[] pszDstFile, double scale, int slopeFormat, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE eDataType, byte[] pszFormat, int NoDataFlag) { int ret = EarthView_World_Spatial2D_Analyst_CRasterDataAnalysis_CreateSlope_ev_int32_char_char_double_int_EVRasterDataType_char_int(this.NativeObject, pszSrcFile, pszDstFile, scale, slopeFormat, eDataType, pszFormat, NoDataFlag); return(ret); }
public int CreateAspect(EarthView.World.Spatial2D.Raster.RasterDataSet psrcData, byte[] pszDstFile, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE eDataType, byte[] pszFormat, int NoDataFlag, int bAngleAsAzimuth) { int ret = EarthView_World_Spatial2D_Analyst_CRasterDataAnalysis_CreateAspect_ev_int32_CRasterDataSet_char_EVRasterDataType_char_int_int(this.NativeObject, object.Equals(psrcData, null) ? IntPtr.Zero : psrcData.NativeObject, pszDstFile, eDataType, pszFormat, NoDataFlag, bAngleAsAzimuth); return(ret); }
private static extern int EarthView_World_Spatial2D_Analyst_CRasterDataAnalysis_CreateAspect_ev_int32_CRasterDataSet_char_EVRasterDataType_char_int_int(IntPtr pNativeObject, IntPtr psrcData, byte[] pszDstFile, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE eDataType, byte[] pszFormat, int NoDataFlag, int bAngleAsAzimuth);
public int CreateAspect(byte[] pszSrcFile, byte[] pszDstFile, EarthView.World.Spatial.GeoDataset.EVRASTERDATATYPE eDataType, byte[] pszFormat, int NoDataFlag, int bAngleAsAzimuth) { int ret = EarthView_World_Spatial2D_Analyst_CRasterDataAnalysis_CreateAspect_ev_int32_char_char_EVRasterDataType_char_int_int(this.NativeObject, pszSrcFile, pszDstFile, eDataType, pszFormat, NoDataFlag, bAngleAsAzimuth); return(ret); }