3

I'm new to FME, so just getting used to the interface.

I've loaded a template .fmw which has given me a full process, including an example 'Writer'. This writer is no use to me, and as I can't change it to PostGIS, I've created a new writer for the output. However, there is a really long list of attributes that need to be duplicated into the new writer.

Does anyone have any idea if there is a quick way to copy across multiple attributes from one writer to another?

2 Answers 2

4

You can open the properties dialog (for the original writer) and use the Writer option there to move that table from one writer to the other. That way you don't have to copy from one table to another.

enter image description here

As the above screenshot shows, it doesn't even need to be the same format. FME will automatically adjust the data types to match the new format.

However, since you're using PostGIS, it's possible that the table exists already in that database. If so, use Writers > Import Feature Types from the menubar to select tables from that database to add to the workspace as table definitions. That way you get it directly from the database and there is no risk of a typo or other issue.

You'll find more info on all of these techniques in chapter 4 of the basic training manual for FME

3
  • What? Safe published training manuals? Nice.
    – Fezter
    May 25, 2016 at 1:29
  • Oh yes. Search on GitBook (and GitHub). There are Basic Desktop, Advanced Desktop, and Server Authoring manuals. May 25, 2016 at 15:12
  • Thanks for the answer @Mark, but selecting the existing writer as shown in your screenshot does not have the desired affect of adding the list of copying across the list of attributes. Good tip on the possibility of using an existing table in PostGIS, but in this case I am creating a new table.
    – Matt
    May 26, 2016 at 8:27
1

Right click on your new writer then Choose Copy from Feature type context menu and then choose your attribute writer..I hope this will help you...

2
  • Thanks for the answer @Venug, but you have misunderstood my question. I want to copy the list of attributes from another writer that has already been set up with the correct list of attributes. There are a lot of them so I don't want to do it manually.
    – Matt
    May 24, 2016 at 11:25
  • Right click on your new writer then Choose Copy from Feature type context menu and then choose your attribute writer..I hope this will help you...
    – Venug
    May 24, 2016 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.