Skip to main content
Question

Test if polygon geometry contains curve


bgeorges
Contributor
Forum|alt.badge.img+5

Hi,

 

Is there a way to test if a polygon geometry contains curve? I dont find any transformer that explicitely achieve that.

 

Thank you!

5 replies

dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • May 6, 2022

@bgeorges​ What type of data are you reading in? There may be format attributes that we can pull that info from.


bgeorges
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 6, 2022
dustin wrote:

@bgeorges​ What type of data are you reading in? There may be format attributes that we can pull that info from.

Its from an Esri file geodatabase (gdb)


dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • May 6, 2022
bgeorges wrote:

Its from an Esri file geodatabase (gdb)

On your reader feature type, if you expose your fme_type or geodb_type I believe it will contain _ellipse if the feature contains a curve. From there, you can run it through a Tester or TestFilter.image


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • May 10, 2022

Hi @bgeorges​ ,

In case you haven't solved this already you could try the GeometryPartExtractor with the following parameters:

imageAny polygon with an arc will be split up and arcs will be sent out of the Extracted port. See the attached workspace and let me know if you have any questions :D


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • May 11, 2022

If you just want to test for arcs without splitting the geometry up then takashi's python solution here might help you

https://community.safe.com/s/question/0D54Q000080hAD2SAM/filter-polygons-composed-of-linearc-preserve-geometry


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings