This is my first question so do tell me if I'm missing anything in the description of the question.
I currently have a workspace where part of the functionality includes the merging of 5 columns (two of which are always empty).The data that isn't merged should be preserved for each of the rows that are created or already in existence.
Below is an Excel example of what I mean:
This is the current situation
This is what it needs to become
As you can see the data from the first three columns are merged into one but the other three columns (ID,Type and Type 2) remain unchanged and are copied to the new rows.
This causes for example the row with ID 500 to split into three rows,all of which contain all attribute information from the original that wasn't merged.
I looked for similar questions but the solutions didn't work for me such as the Attribute Exploder,which does not currently have an option to select what you want to explode.
The solution given in this question came close but did not give me the correct amount of rows:https://knowledge.亚搏在线safe.com/questions/68241/merge-values-of-two-columns.html
The expected amount of rows is 409 (from the original 213) but after running it I only got 255 rows from this method.
The Attribute Pivoter was something I also tried but had no success in.Perhaps this will solve it but I just can't get it to work in the manner that I want it to.
Any ideas are welcome.
Hi I have lots of features that have a datetime and some attributes,I need to group all the ones that happen in the same day on a single line.I need attributes A,B,C from the earliest item that day then I need to add attributes B and C from the other occurrences that day to the same text line.
I have split the date time up so I can see the year day month and time as separate attributes if needed.
If I have 4 attributes in a day then I would want them all grouped up into the same output text line exept the type needs tom come from the attribute with the earliest time
type(A) datetime(B) height(C)
90 2001-01-01T02:24:00 10
91 2001-01-01T08:28:00 15
90 2001-01-01T12:40:00 9
91 2001-01-01T23:24:00 14
90 2001-02-01T02:24:00 8
91 2001-02-01T08:28:00 16
90 2001-02-01T12:40:00 9
91 2001-02-01T23:24:00 12
so for the data above the 2 strings I'm trying to create would be
90 2001-01-01T02:24:00 10 2001-01-01T08:28:00 15 2001-01-01T12:40:00 9 2001-01-01T23:24:00 14
90 2001-02-01T02:24:00 8 2001-02-01T08:28:00 16 2001-02-01T12:40:00 9 2001-02-01T23:24:00 12
I think the feature merger might work but Im unsure how to split them into requestors and suppliers,the earliest item from each day needs to be the requestor and the rest the suppliers.
I'm sure I'm missing something obvious as this doesn't seeem too tricky,any help much appreciated.
Hoping there is a transformer way of doing this before I fall back to writing something in python.
Hi all,
I'm fairly new to FME and have an issue I hope you can help with.I have a shapefile of overhead powerline spans and have been using the FuzzyParrallelLineFinder custom transformer to find spans which (likely) share a right of way (ROW).Each span of the line is a separate feature.Often the ROWs are more complex with not quite parallel lines (hence the Matcher not quite doing the job) but this is just an example:
My ultimate goal is to merge these spans into a single ROW centreline with attributes taken from all of the input spans.The transformer has been working great and the matches I am getting back are really promising and make sense.It provides each matched feature with a _line_id and a _match_id linking to the best case match _line_id,along with various other stats I can use to filter matches.There is also a list of best case and additional matches.
I can use the stats to filter out matches that aren't useful but beyond this I am unsure how to use the output to group spans into ROWs as many spans are matched to many others.Beyond this I can go on to use the highest voltage within each ROW group and assign additional attribution to this but getting there is seeming impossible to my brain right now!Any help would be much appreciated!
Hello,
I have a network where this are many connected lines on nodes
I wanna make from the ones having the same value of an attribute to get connected and became one feature.
Is there any way to do it ?
Thank you
Hi there,
I'm looking for a way how to bring together these two data-sets.
1st data-set contains records with unique ID and several attributes:
Connect_ID | 设施 | Type | Name |
3 | Cafe | Ice-cream | AAA |
12 | Store | Grocery | BBB |
25 | Store | Electronics | CCC |
2nd data-set contains IDs,days and operational hours:
Connect_ID | Day of the week | Opens | Closes |
3 | Monday | 8:00:00 | 18:00:00 |
3 | Tuesday | 8:00:00 | 18:00:00 |
3 | Wednesday | 8:00:00 | 18:00:00 |
3 | Thursday | 8:00:00 | 18:00:00 |
3 | Friday | 8:00:00 | 18:00:00 |
3 | Saturday | 9:00:00 | 14:00:00 |
3 | Sunday | ||
12 | Monday | 8:00:00 | 17:00:00 |
12 | Tuesday | 8:00:00 | 17:00:00 |
12 | Wednesday | 8:00:00 | 17:00:00 |
12 | Thursday | 8:00:00 | 17:00:00 |
12 | Friday | 8:00:00 | 17:00:00 |
12 | Saturday | 9:00:00 | 15:00:00 |
12 | Sunday | ||
25 | Monday | 8:00:00 | 18:00:00 |
25 | Tuesday | 8:00:00 | 18:00:00 |
25 | Wednesday | 8:00:00 | 18:00:00 |
25 | Thursday | 8:00:00 | 18:00:00 |
25 | Friday | 8:00:00 | 18:00:00 |
25 | Saturday | 9:00:00 | 18:00:00 |
25 | Sunday |
What I would like to do is bring these tables together,but they should have 1 row per ID,so the days and the opening hours should be transposed to new columns,like this:
Connect_ID | 设施 | Type | Name | Monday_opens | Monday_closes | Tuesday_opens | Tuesday_closes | Wednesday_opens | Wednesday_closes |
3 | Cafe | Ice-cream | AAA | 8:00:00 | 18:00:00 | 8:00:00 | 18:00:00 | 8:00:00 | 18:00:00 |
12 | Store | Grocery | BBB | 8:00:00
|
17:00:00 | 8:00:00 | 17:00:00 | 8:00:00 | 17:00:00 |
25 | Store | Electronics | CCC | 8:00:00 | 18:00:00 | 8:00:00 | 18:00:00 | 8:00:00 | 18:00:00 |
What I tried so far was to use a Feature merger,having the 1st set as requestor and opening hours data set as supplier,but this way I can't get all the days of the week.
(FME Desktop 2018)
Any help will be much appreciated!
Thanks,
Linda
Hi all,
I'm having issues merging two Excel files - I have tried FeatureMerger but I'm not getting any results.
I have a "main file" that contains a feature "POI_SHORT_NAME".
I also have an "abbreviations" file containing the same feature "POI_SHORT_NAME"
What I'm trying to do:
When the postalcodes in both files match then the POI_SHORT_NAME from the abbreviations file should be written to the main file.
Cheers,
Ed
I have trail data from two different sources and am trying to figure out where they overlap,and where they don't.There is any combination of A,B or A+B.Where the trails do overlap they misalign ever so slightly.I have tried two different methods but have not yet got satisfactory results out of any of them.
Most promising so far seems to be Buffer plus the LineOnAreaOverlayer.My gripe here is that it creates small gaps,see arrows,where a small piece of a segment that does not actually overlap gets registered as an offender.The red is the outline of my buffer,the greens are coupled lines and the blues are singles.
How can I keep the blue segments intact?All incoming segments have ID's,so maybe there is a way to rebuild them from that?It does feel like a slightly cluttered method that would also problems elsewhere.Some places the trail goes from A to B to A+B and back to B - and so on.
Any ideas on how I could get this to work?
Just as a side note: I began with a AnchoredSnapper in combination with the LineOnLineOverlayer.But is seems the many segments hinder it from getting the precision needed for the overlayer to do its thing.
Hello,
I am making a workbench that closes polygons and add them multiple attributes from shape file.I succeeded to do that but now I am facing a problem because for example I have ~1300 polygons that are area and I am using NeighborFinder to relate it with parcel number and some more names.My problem is that some polygons have multiple information,for example,some parcels have parcel number,name of region,name of municipality and name of river crossing it.All these attributes should be assigned to one parcel number and one polygon but it is not what is happening.
I am attaching screen shots of my problem.
In this picture You can see that for example parcel no 1588 have more attributes then just parcel number but I don't know what reason for it is not being merged.
Hi all,
I'm new to FME and am trying to deal with a datset that has duplicates in.However each duplicate contains some information that I need to preserve into newcolumns.
A simplified version is something like this:
PropertyID | Address | Contact name | Contact details |
0001 | 1 High Street | Mr Smith | 01212328000 |
0001 | 1 High Street | Mr Jones | 01212328001 |
0002 | 2 Low Street | Mr Birmingham | 01212328002 |
0002 | 2 Low Street | Mr Warwick | 01212328003 |
And what I need to end up with is more like this:
PropertyID | Address | Contact name | Contact details | Contact name 2 | Contact details 2 |
0001 | 1 High Street | Mr Smith | 01212328000 | Mr Jones | 01212328001 |
0002 | 2 Low Street | Mr Birmingham | 01212328002 | Mr Warwick | 01212328003 |
It's been suggested to me to use FeatureMerger after multiple DuplicateFilters,but I can't figure out how to bring each set of filtered duplicates back in to a single dataset whilst preserving the data out of the duplicate entries.
Any help,pointers or example workspaces would be greatly appreciated.
Cheers,马克
Hi,
I have about 50 feature classes in a geodatabase.In the feature classes,some of the field names are the same but a lot are different.
For example: in one feature class field names are – Sample_ID,Easting_NAD83_UTMz19,Northing_NAD83_UTMz19,Au_INAA_ppb,Ag_INAA_ppm,Fe_ICPMS_ppm,Fe_INAA_ppm,Ca_ICPOES_ppm.
In another feature class,field names are – Sample_ID,Easting_NAD83_UTMz19,Northing_NAD83_UTMz19,Ag_INAA_ppm,Au_ICPMS_ppb,Fe_INAA_ppm.
I want to create a new feature class called "INAA_merged" where every field that contains "_INAA_" will be in it as well as the Sample_ID,Easting/Northing fields.I'd like all the other fields containing for ex: "_ICPMS_" and "_ICPOES_" to be deleted.
So basically I want to merge all the fields together in one feature class that have the same name and delete all the others.
Is this possible?Is there a way to set up conditions for merging – ie to keep certain fields if they contain certain characters and to delete others?
I have a excel sheet that includes a column of road numbers and a column of chainages (eg road distances) I have another spatial database called Road Segments which are lines.They contain attributes ofAssetId,Road numbersand an attribute of 'StartChainage' and one of 'EndChainage'
What I want to achieve is to be able to identify what Road SegmentAssetIdthe chainage from my excel sheet falls on.
I have a client with an interesting request.Basically they have about a dozen shapefiles that consist of points,and all points have 1-4 attachments.What they'd like is to combine the shapefiles into one complete shapefile,and carry over the attachments as well.Unfortunately ESRI doesn't allow you to merge shapefiles,and have the attachments go with it.To further complicate it a bit,all the attachments are labeled the same: photo01,photo02,photo03,or photo04.The naming convention is generic,so simply extracting the photos and reattaching them after merging the shapefiles is out of the question,unless I somehow rename the attachments as I take them off and link them to their proper attributes as they get reattached to the merged file.
I very well could save each attachment and rename it with some kind of naming convention as i download it,but it's repetitive and mind-numbing,and it seems like a perfect candidate for automation.Anyone have any thoughts?I'm relatively new to the platform,but jump in with both feet,eh?
Some FME scripts developed in 2017 version are not working in 2016 version.See the attached zip file for details.It seems like the transformers that are not working in these specific scripts are 'DatabaseJoiner' and 'FeatureMerger'.
What are the alternate solutions ?