there are 150 shape layers and I want to fill the random data in attribute table having different types of fields as Character, integer and float, etc. Each layer have 5 to 15 fields.
Is this is possible to fill random data in all layers using fme?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
You can generate random numbers for sure using the RandomNumberGenerator transformer. It could create either integers or floats.
Characters are a bit more difficult. There's no random generator for that. You could either use the RandomNumberGenerator to generate character codes and convert them to ASCII using the CharacterCodeReplacer, or you could try and find a web service that generates random strings and hit it with the HTTPCaller. There's this site, which I believe has an API.
Alternatively, use the PythonCaller and use a little bit of Python code to generate random strings.