public EarthView.World.Spatial.GeoDataset.Idataset GetDataSet()
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_Atlas_CBingMapTree_getDataSet_IDataset(this.NativeObject);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial.GeoDataset.Idataset csObj = new EarthView.World.Spatial.GeoDataset.Idataset(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "IDataset");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Idataset;
                            csObj.BindNativeObject(__ptr, "IDataset");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
                    public EarthView.World.Spatial.GeoDataset.Idataset OpenDataset(EarthView.World.Spatial.GeoDataset.Ifiledatasource pDataSource, string name)
                    {
                        IntPtr __ptr = EarthView_World_Spatial_VectorFileParser_EVFeatureClassDriverRegister_openDataset_IDataset_IFileDataSource_EVString(this.NativeObject, object.Equals(pDataSource, null) ? IntPtr.Zero : pDataSource.NativeObject, name);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial.GeoDataset.Idataset csObj = new EarthView.World.Spatial.GeoDataset.Idataset(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "IDataset");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Idataset;
                            csObj.BindNativeObject(__ptr, "IDataset");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Esempio n. 3
0
                /// <summary>
                /// 打开数据集。
                /// </summary>
                /// <param name="dataSourceAliasName">数据源的别名。</param>
                /// <param name="datasetName">数据集的别名。</param>
                /// <returns>打开的EarthView::World::Spatial::GeoDataset::IDataset数据集对象。</returns>
                public EarthView.World.Spatial.GeoDataset.Idataset OpenDataset(string dataSourceAliasName, string datasetName)
                {
                    IntPtr __ptr = EarthView_World_Utilities_AppDataSource_openDataset_IDataset_EVString_EVString(this.NativeObject, dataSourceAliasName, datasetName);

                    if (__ptr == IntPtr.Zero)
                    {
                        return(null);
                    }
                    EarthView.World.Spatial.GeoDataset.Idataset csObj = new EarthView.World.Spatial.GeoDataset.Idataset(CreatedWhenConstruct.CWC_NotToCreate);
                    csObj.BindNativeObject(__ptr, "IDataset");
                    csObj.Delegate = true;
                    IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Idataset;
                        csObj.BindNativeObject(__ptr, "IDataset");
                        csObj.Delegate = true;
                    }
                    return(csObj);
                }
                    /// <summary>
                    /// 下一个数据集对象,如果超出范围,这返回NULL
                    /// </summary>
                    /// <param name=""></param>
                    /// <returns>数据集对象</returns>
                    public new EarthView.World.Spatial.GeoDataset.Idataset Next_NoVirtual()
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CEntityDatasetIterator_next_IDataset_NoVirtual(this.NativeObject);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial.GeoDataset.Idataset csObj = new EarthView.World.Spatial.GeoDataset.Idataset(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "IDataset");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.GeoDataset.Idataset;
                            csObj.BindNativeObject(__ptr, "IDataset");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }