<?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: Field Mapping when creating a composite address locator in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/field-mapping-when-creating-a-composite-address/m-p/1087233#M44211</link>
    <description>&lt;P&gt;It seems like I figured it out:\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    
    addressLocators = r"N:\GIS\Geocoding\CityWorksLocators\Locators\MsdMultiRoleLocator.loc Msd;"\
                      r"N:\GIS\Geocoding\CityWorksLocators\Locators\NonMSDMultiRoleLocator.loc NonMSD;"\
                      r"N:\GIS\Geocoding\CityWorksLocators\Locators\SingleRoleParcelLocator.loc Parcel"
    
    #fieldMap = r'"Address or Place" true true false 100 Text 0 0,First,#,N:\GIS\Geocoding\CityWorksLocators\Locators\MsdMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\CityWorksLocators\Locators\NonMSDMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\CityWorksLocators\Locators\SingleRoleParcelLocator.loc,Address,0,0'

    fieldMap = 'Address "Address or Place" true true false 100 Text 0 0,First,#,;'\
                r'N:\GIS\Geocoding\CityWorksLocators\Locators\MsdMultiRoleLocator.loc,Address,0,0,;'\
                r'N:\GIS\Geocoding\CityWorksLocators\Locators\NonMSDMultiRoleLocator.loc,Address,0,0,;'\
                r'N:\GIS\Geocoding\CityWorksLocators\Locators\SingleRoleParcelLocator.loc,Address,0,0'
    
    selectionCriteria = "MsdLocator #;"\
                        "NonMsdLocator #;"\
                        "Parcel #"
                            
    outLocator = r'N:\GIS\Geocoding\CityWorksLocators\Locators\CityWorksComposite.loc'&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 09 Aug 2021 19:36:13 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-08-09T19:36:13Z</dc:date>
    <item>
      <title>Field Mapping when creating a composite address locator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-mapping-when-creating-a-composite-address/m-p/1081570#M43593</link>
      <description>&lt;P&gt;When creating a single or even a multirole locator in ArcGIS Pro, I like to capture the output from the tool so I can easily format the various parameters into a python script.&amp;nbsp; For example, the field mapping parameter for a multi role locator looks like this once I get it into python:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fieldMapping = "'PointAddress.HOUSE_NUMBER AddressPoints_Erase.ADDR_HN';"\
                   "'PointAddress.STREET_PREFIX_DIR AddressPoints_Erase.ADDR_PD';"\
                   "'PointAddress.STREET_NAME AddressPoints_Erase.ADDR_SN';"\
                   "'PointAddress.STREET_SUFFIX_TYPE AddressPoints_Erase.ADDR_ST';"\
                   "'PointAddress.STREET_SUFFIX_DIR AddressPoints_Erase.ADDR_SD';"\
                   "'PointAddress.SUB_ADDRESS_UNIT AddressPoints_Erase.UNIT_DESIG';"\
                   "'PointAddress.CITY AddressPoints_Erase.CITY';"\
                   "'PointAddress.POSTAL AddressPoints_Erase.ZIP_CODE';"\
                   "'StreetAddress.HOUSE_NUMBER_FROM_LEFT Centerlines_Erase.FROMADDR_L';"\
                   "'StreetAddress.HOUSE_NUMBER_TO_LEFT Centerlines_Erase.TOADDR_L';"\
                   "'StreetAddress.HOUSE_NUMBER_FROM_RIGHT Centerlines_Erase.FROMADDR_R';"\
                   "'StreetAddress.HOUSE_NUMBER_TO_RIGHT Centerlines_Erase.TOADDR_R';"\
                   "'StreetAddress.STREET_PREFIX_DIR Centerlines_Erase.PREDIR';"\
                   "'StreetAddress.STREET_NAME Centerlines_Erase.NAME';"\
                   "'StreetAddress.STREET_SUFFIX_TYPE Centerlines_Erase.POSTTYPE';"\
                   "'StreetAddress.STREET_SUFFIX_DIR Centerlines_Erase.POSTDIR';"\
                   "'StreetAddress.CITY_LEFT Centerlines_Erase.INCMUNI_L';"\
                   "'StreetAddress.CITY_RIGHT Centerlines_Erase.INCMUNI_R';"\
                   "'StreetAddress.POSTAL_LEFT Centerlines_Erase.ZIPCODE_L';"\
                   "'StreetAddress.POSTAL_RIGHT Centerlines_Erase.ZIPCODE_R'"&lt;/LI-CODE&gt;&lt;P&gt;It's easy to split the parameters at the semicolon, and makes it much easier to read in the python script itself.&amp;nbsp; However, when it comes to splitting out the parameters of a composite address locator, it's not as straight forward.&amp;nbsp; Here is the output from the tool:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_0-1626904773957.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19095i4417439F4729C0E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_0-1626904773957.png" alt="JoeBorgione_0-1626904773957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's one long line.&amp;nbsp; I can copy that single line into my python script but I can't read it since it goes on for about a mile:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fieldMap = r'Address "Address or Place" true true false 100 Text 0 0,First,#,N:\GIS\Geocoding\NewGeocoding\MsdMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\NewGeocoding\NonMSDMultiRoleLocator.loc,Address,0,0'&lt;/LI-CODE&gt;&lt;P&gt;Does anyone know where to put the line breaks in as shown in the first python window?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1499"&gt;@ShanaBritt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1420"&gt;@BradNiemand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 22:09:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-mapping-when-creating-a-composite-address/m-p/1081570#M43593</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-07-21T22:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Mapping when creating a composite address locator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-mapping-when-creating-a-composite-address/m-p/1087233#M44211</link>
      <description>&lt;P&gt;It seems like I figured it out:\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    
    addressLocators = r"N:\GIS\Geocoding\CityWorksLocators\Locators\MsdMultiRoleLocator.loc Msd;"\
                      r"N:\GIS\Geocoding\CityWorksLocators\Locators\NonMSDMultiRoleLocator.loc NonMSD;"\
                      r"N:\GIS\Geocoding\CityWorksLocators\Locators\SingleRoleParcelLocator.loc Parcel"
    
    #fieldMap = r'"Address or Place" true true false 100 Text 0 0,First,#,N:\GIS\Geocoding\CityWorksLocators\Locators\MsdMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\CityWorksLocators\Locators\NonMSDMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\CityWorksLocators\Locators\SingleRoleParcelLocator.loc,Address,0,0'

    fieldMap = 'Address "Address or Place" true true false 100 Text 0 0,First,#,;'\
                r'N:\GIS\Geocoding\CityWorksLocators\Locators\MsdMultiRoleLocator.loc,Address,0,0,;'\
                r'N:\GIS\Geocoding\CityWorksLocators\Locators\NonMSDMultiRoleLocator.loc,Address,0,0,;'\
                r'N:\GIS\Geocoding\CityWorksLocators\Locators\SingleRoleParcelLocator.loc,Address,0,0'
    
    selectionCriteria = "MsdLocator #;"\
                        "NonMsdLocator #;"\
                        "Parcel #"
                            
    outLocator = r'N:\GIS\Geocoding\CityWorksLocators\Locators\CityWorksComposite.loc'&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Aug 2021 19:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-mapping-when-creating-a-composite-address/m-p/1087233#M44211</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-08-09T19:36:13Z</dc:date>
    </item>
  </channel>
</rss>

