Skip to main content
Question

Conditional Feature String/Attribute Concatenator


salvaleonrp
Enthusiast
Forum|alt.badge.img+16

I wonder what would be the best way to come up with a string of lat/long concatenated from features with a single character value. I'm not sure I described it very well but the pictures should help.

The source is a PDF document.

My workspace

that ended with this. I tried aggregating on Y but it did not work. I was thinking maybe an Advanced attribute Handling but I don't have a good solution yet.

3 replies

jakemolnar
Forum|alt.badge.img

Hi @salvaleonrp,

Have you tried inserting a CoordinateRounder in between the Sorter and the Aggregator?

I was wondering if that might help by making slightly-different Y-coordinate values into the same value, and then the aggregator might have an easier time grouping features together.

edit: Oh, actually, I guess you would actually want an AttributeRounder, since you're sorting/grouping by the attribute value `indices{0}.y`. Also, you should probably change your sorting to be "Numeric" instead of "Alphabetic"


salvaleonrp
Enthusiast
Forum|alt.badge.img+16
  • Author
  • Enthusiast
  • May 10, 2018
jakemolnar wrote:

Hi @salvaleonrp,

Have you tried inserting a CoordinateRounder in between the Sorter and the Aggregator?

I was wondering if that might help by making slightly-different Y-coordinate values into the same value, and then the aggregator might have an easier time grouping features together.

edit: Oh, actually, I guess you would actually want an AttributeRounder, since you're sorting/grouping by the attribute value `indices{0}.y`. Also, you should probably change your sorting to be "Numeric" instead of "Alphabetic"

You are awesome! That did it.

 

 

Thanks to Safe for making the PDF reader into production. I have been excited with its release and this is my first FME workspace for converting to PDF. In the past it has always been workaround.s

 

 

 

 

 


jakemolnar
Forum|alt.badge.img
salvaleonrp wrote:
You are awesome! That did it.

 

 

Thanks to Safe for making the PDF reader into production. I have been excited with its release and this is my first FME workspace for converting to PDF. In the past it has always been workaround.s

 

 

 

 

 

I'm glad you found success!

 

 

Also, I'm very pleased that you are excited about the PDF Reader; the project broke a lot of new ground for Safe and FME, so it's great to know that people appreciate the effort we made :)

 

 


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