def p1(): # Get a copy of the data # downloadUtahCo() # Create GDB and Reproject createGDBreproject(inGDBpath, coPath, gdb, parcels, newParcels, utmprj) # Add Fields addFields(newParcels) # Calc Base fields FIPS, PARCEL_ID, RECORDER, URL, STRUCTURE, CURRENCY calcBaseAttributes(newParcels, parcelFld, fips, recorder, url, county, coUpdate) # Use addresses in parcels addressParcels_Utah(newParcels, parcelAddrFld) # CALC OWNERNAME - Unique to Utah County def Ownername(): print(' * Calculating Ownername') with arcpy.da.UpdateCursor(newParcels, ['OWNERNAME']) as rows: for row in rows: if row[0] != None: if row[0].find(',') > -1: row[0] = '' rows.updateRow(row) Ownername() # Repairing Geometry 1st time repairGeometry(newParcels, startTime) # Feature to Point _feature2point.feature2point(parcelPts, newParcels)
def p1(): # Create GDB and Reproject createGDBreproject(inGDBpath, coPath, gdb, parcels, newParcels, utmprj) # Add Fields addFields(newParcels) # Calc Base fields FIPS, PARCEL_ID, RECORDER, URL, STRUCTURE, CURRENCY calcBaseAttributes(newParcels, parcelFld, fips, recorder, url, county, coUpdate) # Use addresses in parcels addressParcels_Uintah(newParcels, parcelAddrFld) # Repairing Geometry 1st time repairGeometry(newParcels, startTime) # Feature to Point _feature2point.feature2point(parcelPts, newParcels)
def p1(): # Create GDB and Reproject createGDBreproject(inGDBpath, coPath, gdb, parcels, newParcels, utmprj) # Add Fields addFields(newParcels) # Calc Base fields FIPS, PARCEL_ID, RECORDER, URL, STRUCTURE, CURRENCY calcBaseAttributes(newParcels, parcelFld, fips, recorder, url, county, coUpdate) # Get SDE address point addresses into the parcels addressSDEpts(fips, addrPts, parcelFld) # Get other addresses that are not in the address points addressParcels_Kane(newParcels, parcelFld, parcelAddrFld) # Calc ZONING and ACCOUNT_NUM fields - Unique to Kane County def calcZoning_Account(): print(' * Caculating ZONING and ACCOUNT_NUM') with arcpy.da.UpdateCursor( newParcels, ['ZONING', 'ZONE_', 'ACCOUNT_NUM', 'ACC_NUMB']) as rows: for row in rows: if row[1] != None: row[0] = row[1].strip() #ZONING if row[3] != None: row[2] = row[3].strip() #ACCOUNT_NUM rows.updateRow(row) calcZoning_Account() # Repairing Geometry 1st time repairGeometry(newParcels, startTime) # Feature to Point _feature2point.feature2point(parcelPts, newParcels)
def p1(): # Create GDB and Reproject createGDBreproject(inGDBpath, coPath, gdb, parcels, newParcels, utmprj) # Add Fields addFields(newParcels) # Calc Base fields FIPS, PARCEL_ID, RECORDER, URL, STRUCTURE, CURRENCY calcBaseAttributes(newParcels, parcelFld, fips, recorder, url, county, coUpdate) # Get SDE address point addresses into the parcels addressSDEpts(fips, addrPts, parcelFld) # Get other addresses that are not in the address points # FIELD USED HAS ADDRESS BACKWARDS # addressParcels_Grand(newParcels, parcelFld) # Repairing Geometry 1st time repairGeometry(newParcels, startTime) # Feature to Point _feature2point.feature2point(parcelPts, newParcels)
def p1(): # Create GDB and Reproject createGDBreproject(inGDBpath, coPath, gdb, parcels, newParcels, utmprj) # UNIQUE TO PIUTE # Move parcel addresses in parcels from PARCEL_ADD field to PARCEL_ADD2 if arcpy.ListFields(newParcels, 'PARCEL_ADD'): print(" Adding PARCEL_ADD2") if not arcpy.ListFields(newParcels, 'PARCEL_ADD2'): arcpy.AddField_management(newParcels, 'PARCEL_ADD2', 'TEXT', '', '', '60') with arcpy.da.UpdateCursor(newParcels, ['PARCEL_ADD2', 'PARCEL_ADD']) as rows: for row in rows: row[0] = row[1] rows.updateRow(row) arcpy.DeleteField_management(newParcels, ['PARCEL_ADD']) # Add Fields addFields(newParcels) # Calc Base fields FIPS, PARCEL_ID, RECORDER, URL, STRUCTURE, CURRENCY calcBaseAttributes(newParcels, parcelFld, fips, recorder, url, county, coUpdate) # Get SDE address point addresses into the parcels addressSDEpts(fips, addrPts, parcelFld) # Get other addresses that are not in the address points addressParcels_Generic(newParcels, parcelFld, parcelAddrFld) # Repairing Geometry 1st time repairGeometry(newParcels, startTime) # Feature to Point _feature2point.feature2point(parcelPts, newParcels)