/// <summary> /// 设置一个创建KML数据集的选项,具体请见AppDataSource::createDataset()。 /// </summary> /// <param name="kmlDatasetType">KML数据集类型。</param> /// <returns>EarthView::World::Utilities::DatasetOption数据集选项对象。</returns> public EarthView.World.Utilities.DatasetOption Kml(EarthView.World.Utilities.KMLDATASETTYPE kmlDatasetType) { IntPtr __ptr = EarthView_World_Utilities_DatasetOption_Create_File_kml_DatasetOption_KMLDatasetType(this.NativeObject, kmlDatasetType); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Utilities.DatasetOption csObj = new EarthView.World.Utilities.DatasetOption(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Utilities.DatasetOption; csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 设置一个创建模型数据集的选项,具体请见AppDataSource::createDataset()。 /// </summary> /// <param name="fields">数据集字段设置。</param> /// <param name="modelDatasetType">模型数据集类型。</param> /// <param name="espg">EVWellKnownGeoCSType或EVWellKnownProjCSType。</param> /// <returns>EarthView::World::Utilities::DatasetOption数据集选项对象。</returns> public EarthView.World.Utilities.DatasetOption Model(EarthView.World.Spatial.GeoDataset.Fields fields, EarthView.World.Utilities.MODELDATASETTYPE modelDatasetType, int espg) { IntPtr __ptr = EarthView_World_Utilities_DatasetOption_Create_DB_model_DatasetOption_CFields_ModelDatasetType_int(this.NativeObject, object.Equals(fields, null) ? IntPtr.Zero : fields.NativeObject, modelDatasetType, espg); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Utilities.DatasetOption csObj = new EarthView.World.Utilities.DatasetOption(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Utilities.DatasetOption; csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 设置一个创建特效数据集的选项,具体请见AppDataSource::createDataset()。 /// </summary> /// <param name="espg">EVWellKnownGeoCSType或EVWellKnownProjCSType。</param> /// <returns>EarthView::World::Utilities::DatasetOption数据集选项对象。</returns> public EarthView.World.Utilities.DatasetOption Effect(int espg) { IntPtr __ptr = EarthView_World_Utilities_DatasetOption_Create_DB_effect_DatasetOption_int(this.NativeObject, espg); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Utilities.DatasetOption csObj = new EarthView.World.Utilities.DatasetOption(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Utilities.DatasetOption; csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 设置一个创建矢量数据集的选项,具体请见AppDataSource::createDataset()。 /// </summary> /// <param name="geoType">EVGeometryType。</param> /// <param name="espg">EVWellKnownGeoCSType或EVWellKnownProjCSType。</param> /// <returns>EarthView::World::Utilities::DatasetOption数据集选项对象。</returns> public EarthView.World.Utilities.DatasetOption Vector(EarthView.World.Spatial.GeoDataset.Fields fields, int geoType, string wktCoordsys) { IntPtr __ptr = EarthView_World_Utilities_DatasetOption_Create_DB_vector_DatasetOption_CFields_int_EVString(this.NativeObject, object.Equals(fields, null) ? IntPtr.Zero : fields.NativeObject, geoType, wktCoordsys); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Utilities.DatasetOption csObj = new EarthView.World.Utilities.DatasetOption(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Utilities.DatasetOption; csObj.BindNativeObject(__ptr, "DatasetOption"); csObj.Delegate = true; } return(csObj); }