Skip to main content
hi everybody

 

I have a Shape File with ellipse features. they appear in fme as a normal area. now I have to extract the orientation and axis-lenght. Because they ar area-objects the "EllipsePropertyExtractor" Transformer is not working.

 

Have anyone an idea how I get to this parameters?

 

 

thanks for the help

 

Spirou
Hi,

 

 

If all u need is the axis length and orientation, then assuming the area is a true elipse, you can simply use a boundsextractor.

 

The axis of the elipse should coincide with one of the crosslines of the described box, this gives u the angle.

 

The length can be accquired by calculating the distance of the inersectionpoints of the elipse with the "crossline"

 

 

If u

 


Hi Gio

 

Thanks for your hint. It brings me further on. The axis of the elipse coincide with one of the boundingbox crossline as long as the elipse is not horizontal or vertical. I have to filter this two cases. For this I work with the ellipse area and the NeighborFinder: for the base I use the CenterOfGravityReplacer (center of the elipse) and for the candidate I come in with the result of the chopper (points of the ellipse boundery). The NeighborFinder gives me the closest candidate coordinates and this is the little axis of the elipse.

 

And when I write this, I see that I don't need to filter. I can directly go on with this procedure.

 

cheers, spirou

Reply