Skip to main content
Question

How to output points from CenterPointExtractor to shape file?

  • September 15, 2021
  • 4 replies
  • 64 views

Forum|alt.badge.img

I'm brand new to FME, and I know this is likely a basic question. I am converting a CAD .dgn to ESRI shape files. I want to take the centroids of several cells (polygon features) and export those to shape file. The documentation tells me  x, y, and z attributes are output but I have no idea how to get them to Esri shape file.

 

http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/centerpointextractor.htm

 

When I put together a workflow, I get no output. What am I doing wrong?

4 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • September 15, 2021

Hi @rab_usace​ 

 

I suggest you use the transformer CenterPointReplacer.

 

Thanks in Advance,

 

Danilo


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • September 15, 2021

Hi @rab_usace​,

The CenterPointExtractor provides the X,Y and Z coordinates as attributes on the feature. I think you may prefer the CenterPointReplacer, which replaces the input polygon geometry with point geometry of the centroid.


Forum|alt.badge.img
  • Author
  • September 15, 2021

Thanks, the CenterPointReplacer works perfectly. I suspected this was an easy fix but couldn't find the right tool.


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • September 16, 2021
rab_usace wrote:

Thanks, the CenterPointReplacer works perfectly. I suspected this was an easy fix but couldn't find the right tool.

Nice @rab_usace​ !

good teamwork @daveatsafe​ 


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