/// <summary> /// 获取指定真实坐标对应的瓦片信息对象 /// </summary> /// <returns>指定真实坐标所在瓦片信息对象的指针</returns> public EarthView.World.Spatial.TileInfo GetTileInfoByXY(double x, double y) { IntPtr __ptr = EarthView_World_Spatial_CTilesInfo_getTileInfoByXY_CTileInfo_ev_real64_ev_real64(this.NativeObject, x, y); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.TileInfo csObj = new EarthView.World.Spatial.TileInfo(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CTileInfo"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.TileInfo; csObj.BindNativeObject(__ptr, "CTileInfo"); } return(csObj); }
/// <summary> /// 获取指定行号列号的瓦片信息 /// </summary> /// <param name="row">指定行号</param> /// <param name="col">指定列号</param> /// <param name="ptr1">现有对象首地址</param> /// <returns>指定行号列号的瓦片信息对象的指针(瓦片行列超出范围返回空)</returns> public EarthView.World.Spatial.TileInfo GetTileInfoByRowCol(uint row, uint col, IntPtr ptr1) { IntPtr __ptr = EarthView_World_Spatial_CTileLevelInfo_getTileInfoByRowCol_CTileInfo_ev_uint32_ev_uint32_void(this.NativeObject, row, col, ptr1); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.TileInfo csObj = new EarthView.World.Spatial.TileInfo(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CTileInfo"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.TileInfo; csObj.BindNativeObject(__ptr, "CTileInfo"); } return(csObj); }