Skip to main content
Solved

How do you create separate attributes for the geometry and a center point in one feature?

  • May 8, 2021
  • 5 replies
  • 57 views

larue
Contributor
Forum|alt.badge.img+12

FeatureMerge1Hello,

I am trying to merge features where it has a closed polyline and it's derived center point (using CenterpointReplacer) where they are separate attributes in each respective feature. I am using a _count attribute to join on, by FeatureMerger, but it does not pick up the polylines (Requestor), only the points (Supplier). The end result should be separate columns for polyline and point in the same feature.

Any help is appreciated. Thanks, @larue​ 

 

 

Best answer by larue

Well, I figured it out:

 

FeatureMerge2The string replacer nodes are not part of this solution.

 

Enjoy

 

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.

5 replies

connecter
Contributor
Forum|alt.badge.img+10
  • Contributor
  • May 8, 2021

Hi @larue,

do you try a FeatureJoiner with "Geometry Handling: Aggregate Left and Right"? The result will be a Line and a Point (Aggregate) and the join of two tables.


larue
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • May 8, 2021

Hi @larue,

do you try a FeatureJoiner with "Geometry Handling: Aggregate Left and Right"? The result will be a Line and a Point (Aggregate) and the join of two tables.

Ok, interesting. I see that it is like Aggregator, but gives a name to each component (Left and Right).

So then, how do you get them to show up as two separate attributes? I can see "Name" , with the Left and Right values in Feature Info, but they can't be readily selected in, AttributeCreator.

 

I think we are on the right track though. Many thanks!


connecter
Contributor
Forum|alt.badge.img+10
  • Contributor
  • May 8, 2021

Ok, interesting. I see that it is like Aggregator, but gives a name to each component (Left and Right).

So then, how do you get them to show up as two separate attributes? I can see "Name" , with the Left and Right values in Feature Info, but they can't be readily selected in, AttributeCreator.

 

I think we are on the right track though. Many thanks!

Hello again,

you can get the names with the GeometryPropertyExtractor. But I think I don‘t unterstand your goal-sry.


larue
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • May 8, 2021

Ok, interesting. I see that it is like Aggregator, but gives a name to each component (Left and Right).

So then, how do you get them to show up as two separate attributes? I can see "Name" , with the Left and Right values in Feature Info, but they can't be readily selected in, AttributeCreator.

 

I think we are on the right track though. Many thanks!

I can see the GPE may work, but will have to get more familiar with Regex, I guess?

 

The goal is to output an excel file where it has one column for the polyline (left) and one for the point (right) in their respective row. The point is inside each of their respective polylines.

 

This will eventually be used in a Dynamo script that automatically creates a Revit model. I like FME because it is Dynamo-esque, but it requires a shift in mindset. My ideal app would have aspects of both.

 


larue
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • Best Answer
  • May 9, 2021

Well, I figured it out:

 

FeatureMerge2The string replacer nodes are not part of this solution.

 

Enjoy