I have a vehicle fleet lookup table like:
1,1912,"A",2,"San Francisco Municipal Railway","San Francisco Municipal Railway"
228,1934,"",2,"Blackpool Tramways","Blackpool Tramways"
578,1896,"G",2,"Market Street Railway","Market Street Railway"
737,1952,"PCC",1,"Brussels, Belgium","Zurich, Switzerland"
1807,1928,"Milan",1,"Milan, Italy","Milan, Italy (1928)"
A transforms.conf file like:
filename = Historic_fleet.csv
And a props.conf file like:
category = Custom
disabled = false
LOOKUP-fleet = Historic_fleet vehicle_id
This all works fine. However, there are occasionally other vehicles out that are busses. They have their own vehicle_id s that are not in the lookup table. What I want is to have any vehicle_id that is not found to map to a vehicle_type=bus . I'd like to do this automatically so I don't have to do it for every query I write.
I'm aware that a lookup table can have a default value, but how do you specify that a default value of, say, bus , is supposed to go into the vehicle_type field?
Can I do this with static tables? Or must I resort to using an external lookup Python script?
... View more