Skip to main content
Solved

Merging attributes in an ESRI Shapefile

  • December 4, 2014
  • 4 replies
  • 10 views

Hello,

 

 

I am new to FME and am having trouble performing a basic merge of attributes from a esri shapefile with multiple line attributes. I simply want to merge them all into one. The LineJoiner (I have successfully used this before) seemed to partially work but only in trimming 62 features into 33. I have tried fiddling with FeatureMerger, Aggregator but can't seem to get these to work either. All the attributes have the same common attribute (ID No.) but trying to group on this field doesn't work either. Some of the lines do not join with one another so this could be the source of the issue. I could easily perform this task in ArcGIS but wish to avoid having to switch between programmes.

 

 

Any help would be much appreciated.

 

 

Tom. 

Best answer by takashi

The LineJoiner connects only lines that touch each other at their end nodes.

 

If you need to transform the lines into an aggregate line (i.e. multi-part line), consider using the Aggregator transformer (Mode: Geometry - Assemble One Level).
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

4 replies

takashi
Influencer
  • December 5, 2014
Hi Tom,

 

 

Sorry, I'm not sure what the "basic merge of attributes" means.

 

Could you please explain more concretely what you want to do?

 

In addition, if you post examples, those will help us to understand your requirement correctly.

 

 

Takashi

  • Author
  • December 5, 2014
Hi Takashi,

 

 

Thanks for the reply. To clarify I have an ESRI polyline shapefile it consists of a number of lines (62), as part of my processing this to a Google KML file I would would like to merge these lines together so that I only have one feature and not 62 in the writer file. I have done this successfully with a different shapefile using the LineJoiner but it doesn't seem to work in this case - maybe because some of the lines do not intersect?

 

 

Thanks

 

 

Tom.

takashi
Influencer
  • Best Answer
  • December 5, 2014
The LineJoiner connects only lines that touch each other at their end nodes.

 

If you need to transform the lines into an aggregate line (i.e. multi-part line), consider using the Aggregator transformer (Mode: Geometry - Assemble One Level).

  • Author
  • December 5, 2014
Takeshi,

 

 

Fantastic - this worked perfectly.

 

 

Sorry for asking such a basic question!

 

 

Tom.

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