当前位置: wns888.com > 科技中心 > 正文

ae 点生成面

时间:2019-10-11 08:33来源:科技中心
public IPolygon generatePolygon(IEnvelope pEnvolope) double max_x = pEnvolope.XMax; double max_y = pEnvolope.YMax; double min_x = pEnvolope.XMin; double min_y = pEnvolope.YMin; IPoint point = new PointClass(); point.X = min_x; point.Y = min

public IPolygon generatePolygon(IEnvelope pEnvolope)

double max_x = pEnvolope.XMax;

double max_y = pEnvolope.YMax;

double min_x = pEnvolope.XMin;

double min_y = pEnvolope.YMin;

IPoint point = new PointClass();

point.X = min_x;

point.Y = min_y;

IPointCollection pCol = new PolygonClass();

pCol.AddPoint(point, Type.Missing, Type.Missing);

point.X = max_x;

point.Y = min_y;

pCol.AddPoint(point, Type.Missing, Type.Missing);

point.X = max_x;

point.Y = max_y;

pCol.AddPoint(point, Type.Missing, Type.Missing);

point.X = min_x;

point.Y = max_y;

pCol.AddPoint(point, Type.Missing, Type.Missing);

point.X = min_x;

point.Y = min_y;

wns888.com,pCol.AddPoint(point, Type.Missing, Type.Missing);

IPolygon polygon = pCol as IPolygon;

polygon.Close();

return polygon;

编辑:科技中心 本文来源:ae 点生成面

关键词: