Skip to main content
Question

EllipsePropertyExtractor, but only area features available

  • September 10, 2014
  • 2 replies
  • 73 views

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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • September 11, 2014
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

 


  • Author
  • September 12, 2014
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