Skip to main content
Solved

GeoDatabase Fanout, Spaces in name


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.
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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+18
  • 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+18
  • 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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings