Example #1
0
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)

    # Repairing Geometry 1st time
    repairGeometry(newParcels, startTime)

    # Feature to Point
    _feature2point.feature2point(parcelPts, newParcels)
Example #2
0
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)
Example #3
0
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)