/// <summary> /// 获取长度单位字符 /// </summary> /// <param name="mapUnit">长度单位类型</param> /// <returns>长度单位字符</returns> public string GetLengthUnitString(EarthView.World.Spatial.Display.LENGTHUNITTYPE lengthUnit) { IntPtr __ptr = EarthView_World_Spatial_Display_CSpatialUnitConverter_getLengthUnitString_EVString_LengthUnitType(this.NativeObject, lengthUnit); string ret = Marshal.PtrToStringAnsi(__ptr); ClassFactory.FreeString(ref __ptr); return(ret); }
/// <summary> /// 千米转化为其他长度单位 /// </summary> /// <param name="kiloValuve ">单位为千米的值</param> /// <param name="uintType ">需要转化成的长度单位类型</param> /// <returns>转化后的单位对应的值</returns> public double KmToOtherLengthUnit(double kiloValuve, EarthView.World.Spatial.Display.LENGTHUNITTYPE uintType) { double ret = EarthView_World_Spatial_Display_CSpatialUnitConverter_kmToOtherLengthUnit_ev_real64_ev_real64_LengthUnitType(this.NativeObject, kiloValuve, uintType); return(ret); }
private static extern IntPtr EarthView_World_Spatial_Display_CSpatialUnitConverter_getLengthUnitString_EVString_LengthUnitType(IntPtr pNativeObject, EarthView.World.Spatial.Display.LENGTHUNITTYPE lengthUnit);
private static extern double EarthView_World_Spatial_Display_CSpatialUnitConverter_kmToOtherLengthUnit_ev_real64_ev_real64_LengthUnitType(IntPtr pNativeObject, double kiloValuve, EarthView.World.Spatial.Display.LENGTHUNITTYPE uintType);