///<summary> ///根据常见的坐标系统枚举 创建常见地理坐标系统 ///</summary> /// <param name="eWellKnownCS">EarthView::World::Spatial::Utility::EVWellKnownGeoCSType常见地理坐标系统枚举</param> /// <returns>EarthView::World::Spatial::Utility::CSpatialReference*空间参考指针</returns> public static EarthView.World.Spatial.Utility.SpatialReference CreateCoordSys(EarthView.World.Spatial.Utility.EVWELLKNOWNGEOCSTYPE eWellKnownCS) { IntPtr __ptr = EarthView_World_Spatial_Utility_CCoordinateSystemFactory_createCoordSys_CSpatialReference_EVWellKnownGeoCSType(eWellKnownCS); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Utility.SpatialReference csObj = new EarthView.World.Spatial.Utility.SpatialReference(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Utility.SpatialReference; csObj.BindNativeObject(__ptr, "CSpatialReference"); csObj.Delegate = true; } return(csObj); }
private static extern IntPtr EarthView_World_Spatial_Utility_CCoordinateSystemFactory_createCoordSys_CSpatialReference_EVWellKnownGeoCSType(EarthView.World.Spatial.Utility.EVWELLKNOWNGEOCSTYPE eWellKnownCS);