AnsweredAssumed Answered

Create Multiple site address points from one

Question asked by jborgion Champion on Oct 16, 2020
Latest reply on Oct 19, 2020 by jborgion

I have set of site address points that instead of a single house number, they contain a range of house numbers.  I would like to create a point in the same location for each of the house numbers in the range.  Here is the beginning of the python logic:

 

addrRange = '8909-8927' # the hyphenated string is in the HouseNumber field
begin = int(addrRange.split('-')[0])
end = int(addrRange.split('-')[1])
addresses = int((end - begin) / 2)
houseNumberList = [begin]

for i in range(addresses):
    begin +=2
    houseNumberList.append(begin)

Now I have a list of house numbers and the goal is to create a new point for each of list elements:

[8909, 8911, 8913, 8915, 8917, 8919, 8921, 8923, 8925, 8927]

Basically, where there was one point, (in this case) I want ten points stacked on top of each other.  Could be it's Friday, or could be I just can't wrap my head around the next step (that will involve an insert cursor) but I need another set of eyes on this.  Each new point attribute record will be a copy of the original but the value in the HouseNumber field will correspond with the list element.

 

Thanks in advance

Outcomes