<?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: Geocoding in python - workk with Composite Locators? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500795#M39334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a mystery, I would log a support call.&amp;nbsp; I'll ask around the shop here if we're aware of any incompatibilities and reply here if I hear anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 16:10:44 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2016-09-06T16:10:44Z</dc:date>
    <item>
      <title>Geocoding in python - workk with Composite Locators?</title>
      <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500790#M39329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to geocode a file geodatabase table against a composite locator in a python script. When I run it in PyScripter, it gives an &lt;A href="http://www.ehow.com/about_6113547_eaccess-violation_.html" rel="nofollow noopener noreferrer" target="_blank"&gt;EAccessViolation&lt;/A&gt; error, which according to Google is a memory error in the program (PyScripter).&lt;/P&gt;&lt;P&gt;But I also get an error when running it in IDLE, although the error message is far less detailed.&lt;/P&gt;&lt;P&gt;The composite locator is in a folder on another server. It has both point and road centerline locators. Is it possible to use a composite locator in python, or am I looking in the wrong direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; childcare_table &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;table_locations&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Childcare"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoded_fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;table_locations&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LARA"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LARA_CDC"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"\\gisfile\gis\Static\Geocoders\Composite_Locator"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; address_fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Street Fac_Addr;City City;Zip Zip"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;global&lt;/SPAN&gt; ok

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"\nRunning geocoding..."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GeocodeAddresses_geocoding&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;childcare_table&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; geocoder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; address_fields&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; geocoded_fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Unexpected error {0}\n\t{1}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exc_info&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="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exc_info&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="number token"&gt;1&lt;/SPAN&gt;&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;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddError&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exc_info&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="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ok &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&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;/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;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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500790#M39329</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2021-12-11T21:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding in python - workk with Composite Locators?</title>
      <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500791#M39330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there some bit to the script missing that indicates the actual path that you are working in? Like line 3? what is that joined to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2016 03:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500791#M39330</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-09-03T03:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding in python - workk with Composite Locators?</title>
      <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500792#M39331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Line 3 isn't joined to anything, that's the actual path name. table_locations is a module level variable set to&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;table_locations = r"O:\Greg_Working\GDB\Temp_Data.gdb"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500792#M39331</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2016-09-06T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding in python - workk with Composite Locators?</title>
      <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500793#M39332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a composite locator like you envision.&amp;nbsp; Try just the Geocode_Addresses geoprocessing tool manually with the arguments you want and check everything is OK then you will know it will work in code.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 14:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500793#M39332</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2016-09-06T14:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding in python - workk with Composite Locators?</title>
      <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500794#M39333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce, but not working there either, at least in PyScripter. &lt;EM&gt;PyScripter - application error:&lt;/EM&gt; &lt;EM&gt;Access violation at address 5E0E150C in module 'GpGeocodingFunctions.dll'. Read of address 00000000.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I can manually geocode the table in ArcCatalog by right clicking and selecting Geocode addresses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 15:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500794#M39333</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2016-09-06T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding in python - workk with Composite Locators?</title>
      <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500795#M39334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a mystery, I would log a support call.&amp;nbsp; I'll ask around the shop here if we're aware of any incompatibilities and reply here if I hear anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500795#M39334</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2016-09-06T16:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding in python - workk with Composite Locators?</title>
      <link>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500796#M39335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. One other odd thing is that even when manually geocoding by right clicking, I can't change the default resulting file name from Geocoding_Result. Whenever I enter something else I get an &lt;EM&gt;Error saving file&lt;/EM&gt; message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocoding-in-python-workk-with-composite-locators/m-p/500796#M39335</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2016-09-06T19:00:28Z</dc:date>
    </item>
  </channel>
</rss>

