Skip to main content
Question

Test if polygon geometry contains curve

  • May 6, 2022
  • 5 replies
  • 401 views

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+31
  • Influencer
  • 627 replies
  • 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
  • 21 replies
  • May 6, 2022

@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+31
  • Influencer
  • 627 replies
  • May 6, 2022

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
  • 606 replies
  • 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+44
  • Influencer
  • 3422 replies
  • 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