<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I eliminate extra spaces when using field calculator in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15027#M514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh...glad it worked &amp;nbsp;&lt;/P&gt;&lt;P&gt;python and the python parser have loads more options than the vb offerings... time to move forward &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;The python parser also includes math functions as well and inside of PRO they offer some code block options like if-else statement setup.&amp;nbsp; Worth spending a few minutes with fields of various types and seeing what is available from within the mini- scrollable function list when python parser is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 22:02:02 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-02-12T22:02:02Z</dc:date>
    <item>
      <title>How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15024#M511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run the field calculator using VB Script, I don't get the desired result&lt;/P&gt;&lt;P&gt;field=&lt;/P&gt;&lt;P&gt;[field2]&amp;amp;".tif"&lt;/P&gt;&lt;P&gt;&amp;nbsp;results in field2 .tif&lt;/P&gt;&lt;P&gt;instead of field2.tif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to eliminate that space?&amp;nbsp; I have over 400 records, I'd prefer not to manually remove the space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15024#M511</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2018-02-12T21:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15025#M512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the python parser&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# use the python parser&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"{}.tif"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!YourFieldName!&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# or&lt;/SPAN&gt;
!YourFieldName!&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".tif"&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:36:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15025#M512</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-10T20:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15026#M513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also found another example that required pre-logic script code that worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Logic Script Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;a1 = LTrim( [Label] )&lt;BR /&gt;a2 = RTrim( a1 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plat=&lt;/P&gt;&lt;P&gt;a2&amp;amp;".tif"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, your example is much simpler.&amp;nbsp; It is what I will use in model builder as I will have to do this on a regular basis.&amp;nbsp; I get the feature class from the county and so I simply replace my previous version with the new version but have to run a model in order to get the information I want each time.&amp;nbsp; Thanks Dan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15026#M513</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2018-02-12T21:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15027#M514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh...glad it worked &amp;nbsp;&lt;/P&gt;&lt;P&gt;python and the python parser have loads more options than the vb offerings... time to move forward &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;The python parser also includes math functions as well and inside of PRO they offer some code block options like if-else statement setup.&amp;nbsp; Worth spending a few minutes with fields of various types and seeing what is available from within the mini- scrollable function list when python parser is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 22:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15027#M514</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-12T22:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15028#M515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, one more question.&amp;nbsp; I've noticed that I have spaces in the file name and Chrome is inconsistent on how it handles the spaces&lt;/P&gt;&lt;P&gt;My result: BITTLES'S 2ND ADDITION.tif&lt;/P&gt;&lt;P&gt;url results:&amp;nbsp;&lt;A class="jivelink11" href="http://70.167.59.150/landuse/plats/BITTLES" title="http://70.167.59.150/landuse/plats/BITTLES"&gt;/BITTLES'S%202NDADDITION.tif&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would have expected&amp;nbsp;&lt;A class="jivelink12" href="http://70.167.59.150/landuse/plats/BITTLES" title="http://70.167.59.150/landuse/plats/BITTLES"&gt;/BITTLES'S%202ND%20ADDITION.tif&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm guessing my results will be more consistent if I had a way to remove all spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 22:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15028#M515</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2018-02-12T22:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15029#M516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never use spaces either use&amp;nbsp; CamelCaseForFileNames or use Underscores_for_filenames&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 23:16:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15029#M516</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-12T23:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15030#M517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree, just not sure how to keep the proper names unless I use an alternate table and join it as part of a script which may be the best option.&amp;nbsp; Maybe I can also use several concatenates in a string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15030#M517</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2018-02-13T14:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15031#M518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using Pro, I have a toolset that has one multi-field concatenation tool.&amp;nbsp; The coding is fairly simple&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15031#M518</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-13T16:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I eliminate extra spaces when using field calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15032#M519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've decided there isn't a simple way to do this.&amp;nbsp; It all has to do with the original data.&amp;nbsp; If each word was in a separate field, I could make this work and there is a way I could do that, but at some point, time spent building the script ends up taking more time than dealing with this manually.&amp;nbsp; The data creator is also doing me no favors by having little consistency in naming conventions and properly filling in all of the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&amp;nbsp; I've decided just to take over maintenance of this layer.&amp;nbsp; I have a good enough handle on the data, I can maintain the layer the way I want to.&amp;nbsp; The county will still handle my parcels and their data is still authoritative so I can still refer to it as needed.&amp;nbsp; Thanks Dan for trying to help, your ideas would work in most situations.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-eliminate-extra-spaces-when-using-field/m-p/15032#M519</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2018-02-13T16:25:39Z</dc:date>
    </item>
  </channel>
</rss>

