Skip to main content
Solved

GeoDatabase Fanout, Spaces in name

  • August 20, 2014
  • 3 replies
  • 37 views

Forum|alt.badge.img
Hi,

 

I am using the GeoDatabase Writer. I have no other option but to use a specific name field for the Fanout properties. I was having writing issues and I figured out that it is because these attributes have Spaces and it is causeing the problem. Is there any way I can have it eliminate these spaces in the name or replace them with Underscores? Thanks. Here is my log file.

 

http://pastebin.com/EsSyBEQx

Best answer by fmelizard

You can use the StringReplacer on multiple attributes and there is no need to use regular expressions, just use a blank space as text to match and an underscore as replacement text.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • August 21, 2014
Hi,

 

Simply use a StringReplacer on the attribute contining the fanout name.

Forum|alt.badge.img
If you have many attributes with spaces in them, the BulkAttributeRenamer is much more convenient. The logic is the same, but you can process a whole bunch of attributes in one transformer. 

 

 

... And I was pretty sure there would be a a generic "replace whitespace" option out of the box, but I can't find it in the documentation...?  Of course, you can do anything with regular expressions, but those are intimidating for the unenlightened.

 

 

If you have to use regular expression, the \\s (backslash and "s") is regex-speak for "whitespace", and that goes into the "Text to find"-box.

 

 


fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • Best Answer
  • August 22, 2014
You can use the StringReplacer on multiple attributes and there is no need to use regular expressions, just use a blank space as text to match and an underscore as replacement text.