I have multiple FCs in multiple FGDBs which I need to run through NeighbourFinder to generate distance/proximity info and then write into a single Excel writer feature type. These FCs have certain attributes I want to carry over into the writer but they are all named slightly differently. I would like some suggestions on the best way to carry this out please so it is easy to swap different combinations of Attribute in and out.
Page 1 / 1
Hi,
have a look at the BulkAttributeRenamer. If that isn't enough, the SchemaMapper might be the next step (more powerful, but also a lot more complex to configure).
David
Thanks. I have had a look at the BulkAttributeRenamer but can't seem to get it to work. I have tried RegEx and String replacer but I am not getting the desired reuslt. Is it best to rename everyting to a 'new' name or match to an existing one?
Hi,
can you give us an example of what you're trying to accomplish?
David
All of the attributes in above AttributeKeeper come from different FCs but hold the same type of attribute. i would like to be able to write these to a single Excel writer as a single attribute, possibly NewName, and have an attribute that contains the name of the source feature type.
If I suppose only one of these attributes hold a value for any given feature, you could use a few chained NullAttributeMappers to isolate the one attribute holding a value, then rename it using a regular AttributeRenamer.
David
Hi,
I cannot grasp your requirement exactly yet, but try "super-clairvoyance" ;)
If each of "SSSI_NAME", "Location", "Name", "TYPE" and "LNR_NAME" is from different feature type and you are trying to replace all of them with an identical name, this could be a solution.
Takashi
Takashi
That's it! I think I had just been incorrect with the sytax I was using for the RegEx. This now does what I what it too. In this example I provided a subset of attributes to handle, but I think I will be able to now use this technique on other combinations, such as each FC has a different attribute for their Unquie IDs which I would want to handle in this way also. There are a few other groups of Attribute which need to consolidated in this way so I guess a BulkAttributeRenamer for each insatnce.
David
Thank you also for your help, much appreciated.