Skip to main content
Solved

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


larue
Contributor
Forum|alt.badge.img+8
  • Contributor

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

 

View original
Did this help you find an answer to your question?

5 replies

connecter
Forum|alt.badge.img+4

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+8
  • Author
  • Contributor
  • May 8, 2021
connecter wrote:

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
Forum|alt.badge.img+4
larue wrote:

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+8
  • Author
  • Contributor
  • May 8, 2021
larue wrote:

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+8
  • Author
  • Contributor
  • Best Answer
  • May 9, 2021

Well, I figured it out:

 

FeatureMerge2The string replacer nodes are not part of this solution.

 

Enjoy

 


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