Mapping File Example
Here is an example mapping file extract showing how to write a two feature types: dht and SASAUS\BND\BARRIERL.
*********************************************************** READER_TYPE SHAPE READER_KEYWORD SHAPE WRITER_TYPE VPF_DB WRITER_KEYWORD VPF_DB SHAPE_DATASET "G:\SampleData\shape\LOTLINES.shp" VPF_DB_DATASET "G:\vpf\out" VPF_DB_PRODUCT VMAP0 VPF_DB_LOG_ALL_MESSAGES NO LOG_FILENAME "G:\vpf\shape2vpf_db.log" LOG_APPEND NO # ---------------------------------------------------------- SHAPE_DEF LOTLINES \ SHAPE_GEOMETRY shape_polyline \ LOTLINE_ID number(5,0) # ---------------------------------------------------------- FACTORY_DEF * TeeFactory \ FACTORY_NAME "Source -> Generic" \ INPUT FEATURE_TYPE * \ OUTPUT FEATURE_TYPE * \ @Transform(SHAPE,FME_GENERIC,PRESERVE_GEOMETRY) # ---------------------------------------------------------- FACTORY_DEF * CreationFactory \ FACTORY_NAME NULLGEOMETRYCREATOR \ CREATE_AT_END no \ NUMBER_TO_CREATE 1 \ OUTPUT FEATURE_TYPE NULLGEOMETRYCREATOR_CREATED \ @SupplyAttributes(?,creation_instance,0) # ---------------------------------------------------------- FACTORY_DEF * TeeFactory \ FACTORY_NAME "NULLGEOMETRYCREATOR_CREATED -> dht Correlator" \ INPUT FEATURE_TYPE NULLGEOMETRYCREATOR_CREATED \ OUTPUT FEATURE_TYPE dht \ @Transform(FME_GENERIC,VPF_DB) \ @SupplyAttributes(database_name,test_db) # ---------------------------------------------------------- FACTORY_DEF * TeeFactory \ FACTORY_NAME "LOTLINES -> SASAUS\BND\BARRIERL Correlator" \ INPUT FEATURE_TYPE LOTLINES \ OUTPUT FEATURE_TYPE SASAUS\BND\BARRIERL \ @Transform(FME_GENERIC,VPF_DB) # ---------------------------------------------------------------- SHAPE * VPF_DB * # ---------------------------------------------------------------- VPF_DB_DEF dht \ VPF_GEOMETRY All \ libraryname char(10) # ---------------------------------------------------------------- VPF_DB_DEF SASAUS\BND\BARRIERL \ VPF_GEOMETRY All **********************************************************