span8
span4
span8
span4
FME's GENTRANS mode is a way to do a quick translation between two formats.GENTRANS performs translations that are very similar to the Universal Translator's Generate/Translate functionality.GENTRANS is useful for when you need to perform quick translations between different formats,and don't need to do any special operations that would normally be performed using FME Workbench.
Why use GENTRANS: the advantage of Gentrans is that it is very easy to run in batch scripts.However,we would recommend starting with either FME Workbench or Quick Translator before jumping into using GENTRANS.
fme gentrans
Apipeline is similar to an FMEMapping File,which itself is a non-graphic version of aworkspace.The difference is that a pipeline doesn't have defined readers or writers,just a set of processing commands.GENTRANS doesn't allow use of workspaces,but you could probably turn a workspace into a pipeline by first saving it as a mapping file (File > Save As) and then editing the mapping file in a text editor to delete the source and destination dataset definitions.
It's complicated,so I guess the point is that if you need to process the data in some way,then GENTRANS might not be the best solution and you should probably be using FME Workbench.
FME GENTRANS LOG_FILENAME gentrans.log ACAD drainage_design_P001.dwg COORDSYS,BritishNatGrid ACAD drainage_design2_P001.dxf COORDSYS,BritishNatGrid
FME GENTRANS GUI GENERATE key.param ACAD drainage_design_P001.dwg ACAD drainage_design2_P001.dxf
FME GENTRANS LOG_FILENAME logfile.txt parameter_file.txt
FME GENTRANS GUI GENERATE_CMDLINE
FME GENTRANS GENERATE_CMDLINE key.param
FME Gentrans ACAD "S:\key-systems\drainage_design_P001.dwg" "RUNTIME_MACROS,\"METAFILE,acadScan,_EXPAND_BLOCKS,no,_EXPAND_VISIBLE,no,_BULGES_AS_ARCS,no,_STORE_BULGE_INFO,yes,_READ_PAPER_SPACE,no,ACAD_IN_READ_GROUPS,no,_IGNORE_UCS,no,_MERGE_SCHEMAS,YES\",META_MACROS,\"Source_EXPAND_BLOCKS,no,Source_EXPAND_VISIBLE,no,Source_BULGES_AS_ARCS,no,Source_STORE_BULGE_INFO,yes,Source_READ_PAPER_SPACE,no,SourceACAD_IN_READ_GROUPS,no,Source_IGNORE_UCS,no\",METAFILE,acadScan,COORDSYS,BritishNatGrid,IDLIST," ACAD "S:\key-systems\drainage_design_P001.dxf" "RUNTIME_MACROS,\"_ATTRKIND,external_attributes,_REL,Release2000,_TMPL,S:\key-systems\drainage_design_P001.dwg\",META_MACROS,\"Dest_ATTRKIND,external_attributes,Dest_REL,Release2000,Dest_TMPL,S:\key-systems\drainage_design_P001.dwg\",METAFILE,ACAD,COORDSYS,BritishNatGrid"
for /R x: %%F in (*.shp) do fme gentrans LOG_FILENAME "y:\%%~pF%%~nF.log" PIPELINE ground2grid.fmi SHAPE "%%F" SHAPE "y:\%%~pF"
Using Batch Deploy to write data to an Oracle database,but the option is greyed out on the menubar.
Batch Processing Method 3: Batch Deploy
Batch Processing Method 1: Command Line or Batch File
Maintaining folder structure when translating many files
Batch Processing Using the WorkspaceRunner
Can FME be used in Batch Mode?
© 2019 亚搏在线Safe Software Inc |Legal