protected void EarthView_World_Spatial_Geometry_CGeodesicMeasure_polygonMeasure_void_CPolygon_ev_real64_ev_real64_Function(IntPtr polygon, ref double area, ref double periMeter) { EarthView.World.Spatial.Geometry.Polygon csobj_polygon = new EarthView.World.Spatial.Geometry.Polygon(CreatedWhenConstruct.CWC_NotToCreate); csobj_polygon.BindNativeObject(polygon, "CPolygon"); csobj_polygon.Delegate = true; IClassFactory csobj_polygonClassFactory = GlobalClassFactoryMap.Get(csobj_polygon.GetCppInstanceTypeName()); if (csobj_polygonClassFactory != null) { csobj_polygon.Delegate = true; csobj_polygon = csobj_polygonClassFactory.Create() as EarthView.World.Spatial.Geometry.Polygon; csobj_polygon.BindNativeObject(polygon, "CPolygon"); csobj_polygon.Delegate = true; } PolygonMeasure(csobj_polygon, ref area, ref periMeter); }
public void AppendPolygon(EarthView.World.Spatial.Geometry.Polygon polygon) { EarthView_World_Geometry3D_CScreenPolygon_appendPolygon_void_CPolygon(this.NativeObject, object.Equals(polygon, null) ? IntPtr.Zero : polygon.NativeObject); }
/// <summary> /// 追加多边形 /// </summary> /// <param name="color">颜色</param> /// <param name="polygon">无参考系的二维面,坐标用x和z,坐标类型和设置的屏幕坐标类型一致</param> /// <returns></returns> public void AppendPolygon(EarthView.World.Spatial.Geometry.Polygon polygon, EarthView.World.Graphic.ColourValue color) { EarthView_World_Geometry3D_CScreenPolygon_appendPolygon_void_CPolygon_CColourValue(this.NativeObject, object.Equals(polygon, null) ? IntPtr.Zero : polygon.NativeObject, object.Equals(color, null) ? IntPtr.Zero : color.NativeObject); }
/// <summary> /// 多边形测量polygon /// </summary> /// <param name="polygon">待测量多边形</param> /// <param name="area">面积</param> /// <param name="periMeter">周长</param> /// <returns></returns> public virtual void PolygonMeasure(EarthView.World.Spatial.Geometry.Polygon polygon, ref double area, ref double periMeter) { EarthView_World_Spatial_Geometry_CGeodesicMeasure_polygonMeasure_void_CPolygon_ev_real64_ev_real64(this.NativeObject, object.Equals(polygon, null) ? IntPtr.Zero : polygon.NativeObject, ref area, ref periMeter); }
///<summary> ///图像aoi裁切(由数据集) ///<summary> /// <param = "Dataset">待裁切的数据集</param> ///<param = "pszDstFile">输出文件路径</param> ///<param = "feature">要素类</param> ///<returns>返回值</returns> ///<summary> // ev_int32 ImageCutByAOIByFeature(EarthView::World::Spatial2D::Raster::CRasterDataSet* Dataset, const char* pszDstFile, //EarthView::World::Spatial::GeoDataset::IFeatureClass* featureclass); ///<summary> ///图像aoi裁切(由数据集) ///<summary> /// <param = "Dataset">待裁切的数据集</param> ///<param = "pszDstFile">输出文件路径</param> ///<param = "feature">多边形类</param> ///<returns>返回值</returns> ///<summary> public int ImageCutByAOIByPolygon(EarthView.World.Spatial2D.Raster.RasterDataSet Dataset, byte[] pszDstFile, EarthView.World.Spatial.Geometry.Polygon polygon) { int ret = EarthView_World_Spatial2D_Analyst_CImageCut_ImageCutByAOIByPolygon_ev_int32_CRasterDataSet_char_CPolygon(this.NativeObject, object.Equals(Dataset, null) ? IntPtr.Zero : Dataset.NativeObject, pszDstFile, object.Equals(polygon, null) ? IntPtr.Zero : polygon.NativeObject); return(ret); }