Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

How to find the center of a complex shaped feature.

$
0
0
I have a feature with the shape as shown below.

Attachment 32089

I want to draw an image at the center of this feature.

I was using a very simple algorithm to determine the center of the feature.
Clearly this does not work for all shapes (the icon is painted on the hypotenuse of the triangle)

My algorithm will likely fail for round objects to.

Is there a common way to get the center of a feature.

Thanks
Attached Thumbnails
Click image for larger version

Name:	odd.png‎
Views:	N/A
Size:	11.3 KB
ID:	32089  

Viewing all articles
Browse latest Browse all 1374

Trending Articles