This project has moved. For the latest updates, please go here.

draw ellypse

Topics: General Topics
Mar 9, 2007 at 7:17 AM
Sharpmap does not provide a method to draw ellypse. Is there any easy way to draw an ellypse?
Mar 9, 2007 at 8:03 PM
The Graphics object in the System.Drawing namespace has this. In the Paint event of the MapImage, use the Graphics instance and call DrawEllipse.
Mar 10, 2007 at 8:11 AM
SharpMap uses The Simple Features Specification which doesn't specify an ellipse object.
If you want to create an ellipse at a specific coordinate, you will have to "fake" it using DrawEllipse as codekaizen says. There are some helper methods in SharpMap to convert any world coordinate to screen coordinates, which would make this a lot easier for you.
Mar 11, 2007 at 9:55 PM
Hi mates. Thanks for your answers. I thought that it would be difficult to draw ellipses using graphics object for different zoom levels.

Instead, I drew the ellipse using connected segments of lines. the algorithm can be found in the link below: