<?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 Generate ID based on road name in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365513#M20864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm very new to the world of GIS, so forgive me if this is easier than I'm making it out to be.&amp;nbsp; I would like to generate an ID attribute from road segment data.&amp;nbsp; The attributes for each road segment include the road name, so I will like to generate an ID with a prefix based on the name.&amp;nbsp; For example, if Main Street has 10 segments I would like the new IDs to read 01-001, 01-002, 01-003, etc. where the 01 prefix is based on the road name and the last 3 digits are the segment numbers.&amp;nbsp; If there are 50 different road names the prefixes would need to be 01 to 50.&amp;nbsp; Is this possible with my limited experience?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 18:35:38 GMT</pubDate>
    <dc:creator>JasonGraham1</dc:creator>
    <dc:date>2017-05-15T18:35:38Z</dc:date>
    <item>
      <title>Generate ID based on road name</title>
      <link>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365513#M20864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm very new to the world of GIS, so forgive me if this is easier than I'm making it out to be.&amp;nbsp; I would like to generate an ID attribute from road segment data.&amp;nbsp; The attributes for each road segment include the road name, so I will like to generate an ID with a prefix based on the name.&amp;nbsp; For example, if Main Street has 10 segments I would like the new IDs to read 01-001, 01-002, 01-003, etc. where the 01 prefix is based on the road name and the last 3 digits are the segment numbers.&amp;nbsp; If there are 50 different road names the prefixes would need to be 01 to 50.&amp;nbsp; Is this possible with my limited experience?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 18:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365513#M20864</guid>
      <dc:creator>JasonGraham1</dc:creator>
      <dc:date>2017-05-15T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generate ID based on road name</title>
      <link>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365514#M20865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can be done... but you need&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a list or dictionary of roads that equate to sequential numbers (ie 01 is main street, 02 is first streed, 03 is dunno street, etc)&lt;/LI&gt;&lt;LI&gt;the number of segments per road.&amp;nbsp; If this isn't known, then the road has to be split into sections since you can't rely on vertices to indicate a section&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;once you can provide that something could be cobbled together script wise I am sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 18:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365514#M20865</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-15T18:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generate ID based on road name</title>
      <link>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365515#M20866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Dan.&amp;nbsp; I would have to create the dictionary for the prefixes.&amp;nbsp; The roads are already broken into segments in the data I'm dealing with, but I don't know how many segments for each road.&amp;nbsp; And there are about 3,000 segments in all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;idea is to sort and group some additional data being gathered for each segment by the prefix (road).&amp;nbsp; It may be easier just to do this by the road name rather some elaborate ID.&amp;nbsp; The new data being generated will include some&amp;nbsp; information from the existing database such as the road name for each segment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 19:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365515#M20866</guid>
      <dc:creator>JasonGraham1</dc:creator>
      <dc:date>2017-05-15T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generate ID based on road name</title>
      <link>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365516#M20867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How will this identifier be used?&amp;nbsp; What about concatenating the name and the address ranges (if you have them).&amp;nbsp; At least with such an approach mere mortals would at least have half a chance to know what the segment the ID refers to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAINST100200101199 for the 100 block of main st....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 20:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365516#M20867</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-05-15T20:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generate ID based on road name</title>
      <link>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365517#M20868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/dissolve.htm"&gt;dissolve&lt;/A&gt; the streets to get a list of unique names and number (enumerate) it to build a dictionary. Alternatively, if you're on an enterprise geodatabase, you could &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/arcsdesqlexecute.htm"&gt;use SQL&lt;/A&gt; to get a distinct list of street names and include a row number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 16:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/generate-id-based-on-road-name/m-p/365517#M20868</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2017-05-16T16:25:48Z</dc:date>
    </item>
  </channel>
</rss>

