Programmatically creating ellipse polygon geometries

5186
5
Jump to solution
06-07-2015 07:49 AM
AnatoliiTerentiev
Occasional Contributor III

Dear Gurus!

In arcObjects I use EllipticArcClass() for creating ellipse with certain center point and a,b values. How I can do this task in silverlight API.

Thanks in advance!

0 Kudos
1 Solution

Accepted Solutions
AnatoliiTerentiev
Occasional Contributor III

All genious - is simple) I do not have guessed. Thank you very much , Asgkar!

But...  Clarify the tasks. Ellipse models the development of a forest fire. It varies with time and I must define objects that fall within the zone. Therefore It is needed poligon ,  as it seems to me, not a symbol.  So I use now this element Adding Ellipse Geometry to ESRI Silverlight GraphicsLayer | Şeyda Hatipoğlu's blog

View solution in original post

0 Kudos
5 Replies
AhmedEl-Sisi
Occasional Contributor III

Hi Anatolii,

By doing some search I found this blog post which explaining how to Add Ellipse Geometry to graphics layer.

AnatoliiTerentiev
Occasional Contributor III

Thank you very much, Ahmed!  I saw a similar decision. One more variant in the same article linked to "geometry service to get an esri polygon to replace the ellipse with", but I did not found this function in geometry service.

0 Kudos
AnatoliiTerentiev
Occasional Contributor III

Here's an interesting article on this subject. Last answer is -

The way i did which might be a little faster maybe is to add a ellipse silverlight usercontrol to a canvas on top of the map (i think you can use the ElementLayer in the latest version of the API with the bugs in it fixed) and just change its width & height properties on mouse move. And on mouse button up, call the geometry service to get an esri polygon to replace the ellipse with.

But I have not found yet what type of geometry service can be used. That is I understand how to do this by creating a polygon from the points, but may be there is a function to convert an ellipse into a polygon

One more useful link - Adding Ellipse Geometry to ESRI Silverlight GraphicsLayer | Şeyda Hatipoğlu's blog

0 Kudos
Asgharkhan
Occasional Contributor

Why you not  use Ellipse with symbol ,Simply write a Ellipse control Template for Symbol and then u can draw Ellipse anywhere in the Map where u want. i use same thing for Rectangle .

AnatoliiTerentiev
Occasional Contributor III

All genious - is simple) I do not have guessed. Thank you very much , Asgkar!

But...  Clarify the tasks. Ellipse models the development of a forest fire. It varies with time and I must define objects that fall within the zone. Therefore It is needed poligon ,  as it seems to me, not a symbol.  So I use now this element Adding Ellipse Geometry to ESRI Silverlight GraphicsLayer | Şeyda Hatipoğlu's blog

0 Kudos