How to create a circle with ArcEngine?


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. EllipticArcClass ellipticalArc = new EllipticArcClass();
  2.  
  3. IEnvelope env = new EnvelopeClass();
  4.  
  5. IPoint lowerLeft = new PointClass();
  6.  
  7. lowerLeft.X = centerPoint.X - width;
  8.  
  9. lowerLeft.Y = centerPoint.Y - height;
  10.  
  11. IPoint upperRight = new PointClass();
  12.  
  13. upperRight.X = centerPoint.X + width;
  14.  
  15. upperRight.Y = centerPoint.Y + height;
  16.  
  17. env.LowerLeft = lowerLeft;
  18.  
  19. env.UpperRight = upperRight;
  20.  
  21. ellipticalArc.ConstructEnvelope(env);
  22.  
  23. IGraphicTrackerSymbol graphicTrackerSymbol = this.graphicTracker.CreateSymbol(simpleFillSymbol, null);
  24.  
  25. int shapeId = this.graphicTracker.Add(ellipticalArc, graphicTrackerSymbol);

URL: http://gis.stackexchange.com/questions/5228/how-to-create-a-circle-with-arcengine

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.