# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# query.py
# Created on: 2019-07-24 14:16:06.00000
#   (generated by ArcGIS/ModelBuilder)
# Description: 
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy


# Local variables:
OUTFALLS = "D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS"
OUTFALLS__4_ = "D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS"
OUTFALLS__2_ = "D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS"
Outfalls_All = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All"
Outfalls_All_DefQuery = "Outfalls_All_DefQuery"
Outfalls_All_Query = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All_Query"
SEWER = "D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER"
SEWER__2_ = "D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER"
SEWER__3_ = "D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER"
Sewer_All = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewer_All"
Sewers_All_DefQuery = "Sewers_All_DefQuery"
Sewers_All_Query = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewers_All_Query"

# Process: Merge (2)
arcpy.Merge_management("D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS", Outfalls_All, "ENABLED \"Enabled\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1;SEWER_TYPE \"SEWER_TYPE\" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1;UNITID \"UNITID\" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1;DATEBUILT_YEAR \"DATEBUILT_YEAR\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1;OWNERSHIP \"OWNERSHIP\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1;SPDES_NUM \"SPDES_NUM\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1;OUTFALL_SIZE \"SIZE1\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1;OUTFALL_SIZE2 \"OUTFALL_SIZE2\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1;ITEM_ID \"ITEM_ID\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1;ROTATION \"ROTATION\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1;GLOBALID \"GlobalID\" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1;SOURCE \"SourceImage\" true true false 256 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1;LATITUDE \"LATITUDE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1;LONGITUDE \"LONGITUDE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1;UNITTYPE \"UNITTYPE\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1;CB \"CommunityBoard\" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1;POINT_X \"POINT_X\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1;POINT_Y \"POINT_Y\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1;COMMENTS \"COMMENTS\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1;BORO \"BORO\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1;UNITS \"UNITS\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1;HEADWALL \"HEADWALL\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1;PipeDia2 \"PIPE_DIAMETER2\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1;REGULATOR_ID \"REGULATOR_ID\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1;RESPONSIBILITY \"RESPONSIBILITY\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1;OUTFALL_TYPE \"OUTFALL_TYPE\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1;OF_SIZE \"OF_SIZE\" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1;RECEIVING_WATERBODY \"RECEIVING_WATER_BODY\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1;MS4_ASSET \"MS4_ASSET\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1;DATEBUILT \"DATEBUILT\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1;CREATEDATE \"CREATEDATE\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1;MS4_ASSET_REV \"MS4_ASSET_REV\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1;TREATMENT_PLANT \"TREATMENT_PLANT\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TREATMENT_PLANT,-1,-1;TEMPOID \"TEMPOID\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TEMPOID,-1,-1;PipeDia \"PIPE_DIAMETER\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia,-1,-1;No_field \"NUMBER_FIELD\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,No_field,-1,-1;TIDEFLAP_GATE \"TIDEFLAP_GATE\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TIDEFLAP_GATE,-1,-1")

# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(Outfalls_All, Outfalls_All_DefQuery, "SEWER_TYPE IN ('STM', NULL, 'UNK') AND NOT OWNERSHIP = 'NYSDOT' AND MS4_ASSET IN ( NULL, 'N') AND TREATMENT_PLANT IN (NULL, 'PR')", "", "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;UNITID UNITID VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;SPDES_NUM SPDES_NUM VISIBLE NONE;OUTFALL_SIZE OUTFALL_SIZE VISIBLE NONE;ITEM_ID ITEM_ID VISIBLE NONE;ROTATION ROTATION VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;PipeDia PipeDia VISIBLE NONE;SOURCE SOURCE VISIBLE NONE;LATITUDE LATITUDE VISIBLE NONE;LONGITUDE LONGITUDE VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;POINT_X POINT_X VISIBLE NONE;POINT_Y POINT_Y VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;BORO BORO VISIBLE NONE;UNITS UNITS VISIBLE NONE;No_field No_field VISIBLE NONE;TIDEFLAP_GATE TIDEFLAP_GATE VISIBLE NONE;HEADWALL HEADWALL VISIBLE NONE;PipeDia2 PipeDia2 VISIBLE NONE;REGULATOR_ID REGULATOR_ID VISIBLE NONE;RESPONSIBILITY RESPONSIBILITY VISIBLE NONE;OUTFALL_TYPE OUTFALL_TYPE VISIBLE NONE;OF_SIZE OF_SIZE VISIBLE NONE;RECEIVING_WATERBODY RECEIVING_WATERBODY VISIBLE NONE;MS4_ASSET MS4_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;MS4_ASSET_REV MS4_ASSET_REV VISIBLE NONE;OUTFALL_SIZE2 OUTFALL_SIZE2 VISIBLE NONE")

# Process: Copy Features
arcpy.CopyFeatures_management(Outfalls_All_DefQuery, Outfalls_All_Query, "", "0", "0", "0")

# Process: Merge
arcpy.Merge_management("D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER", Sewer_All, "ENABLED \"Enabled\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1;SUBTYPE \"SUBTYPE\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1;TREATMENT_PLANT \"TREATMENT_PLANT\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1;SEWER_TYPE \"SEWER_TYPE\" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1;MATERIAL \"MATERIAL\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1;UNITID \"UNITID\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID,-1,-1;MAINCOMP1 \"MAINCOMP1\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP1,-1,-1;MAINCOMP2 \"MAINCOMP2\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP2,-1,-1;DATEBUILT_YEAR \"DATEBUILT_YEAR\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1;OWNERSHIP \"OWNERSHIP\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1;RECONSTRUCTION_TYPE \"RECONSTRUCTION_TYPE\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1;GRID_NO \"GRID_NO\" true true false 6 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1;STATED_LENGTH \"STATED_LENGTH\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1;SUPPORT_TYPE \"SUPPORT_TYPE\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1;FROM_I_ELEVATION \"FROM_I_ELEVATION\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1;TO_I_ELEVATION \"TO_I_ELEVATION\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1;SLOPE \"SLOPE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1;UNITID2 \"UNITID2\" true true false 16 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID2,-1,-1;FROM_I_ELEVATION_BORO_DATUM \"FROM_I_ELEVATION_BORO_DATUM\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION_BORO_DATUM,-1,-1;TO_I_ELEVATION_BORO_DATUM \"TO_I_ELEVATION_BORO_DATUM\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION_BORO_DATUM,-1,-1;GLOBALID \"GlobalID\" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1;WIDTH \"WIDTH\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1;HEIGHT \"HEIGHT\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1;TEMPOID \"TEMPOID\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TEMPOID,-1,-1;ASSETID \"ASSETID\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1;BORO \"BORO\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1;UNITTYPE \"UNITTYPE\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1;CB \"CommunityBoard\" true true false 4 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1;COMMENTS \"COMMENTS\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1;COMPKEY \"COMPKEY\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMPKEY,-1,-1;CONTRACTNO \"CONTRACTNO\" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1;PS_ID \"PS_ID\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1;ASSUMED_ASSET \"ASSUMED ASSET\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1;DATEBUILT \"DATEBUILT\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1;CREATEDATE \"CREATEDATE\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1;SHAPE_Length \"SHAPE_Length\" false true true 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1;PIPESHAPE \"PIPESHAPE\" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1;FROM_I_ELEV_DATUMTYPE \"FROM_I_ELEV_DATUMTYPE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1;TO_I_ELEV_DATUMTYPE \"TO_I_ELEV_DATUMTYPE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1")

# Process: Make Feature Layer (2)
arcpy.MakeFeatureLayer_management(Sewer_All, Sewers_All_DefQuery, "SUBTYPE = 1 AND TREATMENT_PLANT IN ( NULL, 'HP', 'NA', 'PR', 'TI') AND SEWER_TYPE IN ( 'STM', NULL)", "", "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;SUBTYPE SUBTYPE VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;MATERIAL MATERIAL VISIBLE NONE;UNITID UNITID VISIBLE NONE;MAINCOMP1 MAINCOMP1 VISIBLE NONE;MAINCOMP2 MAINCOMP2 VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;RECONSTRUCTION_TYPE RECONSTRUCTION_TYPE VISIBLE NONE;GRID_NO GRID_NO VISIBLE NONE;STATED_LENGTH STATED_LENGTH VISIBLE NONE;SUPPORT_TYPE SUPPORT_TYPE VISIBLE NONE;FROM_I_ELEVATION FROM_I_ELEVATION VISIBLE NONE;TO_I_ELEVATION TO_I_ELEVATION VISIBLE NONE;SLOPE SLOPE VISIBLE NONE;UNITID2 UNITID2 VISIBLE NONE;FROM_I_ELEVATION_BORO_DATUM FROM_I_ELEVATION_BORO_DATUM VISIBLE NONE;TO_I_ELEVATION_BORO_DATUM TO_I_ELEVATION_BORO_DATUM VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;WIDTH WIDTH VISIBLE NONE;HEIGHT HEIGHT VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;ASSETID ASSETID VISIBLE NONE;BORO BORO VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;COMPKEY COMPKEY VISIBLE NONE;CONTRACTNO CONTRACTNO VISIBLE NONE;PS_ID PS_ID VISIBLE NONE;ASSUMED_ASSET ASSUMED_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;PIPESHAPE PIPESHAPE VISIBLE NONE;FROM_I_ELEV_DATUMTYPE FROM_I_ELEV_DATUMTYPE VISIBLE NONE;TO_I_ELEV_DATUMTYPE TO_I_ELEV_DATUMTYPE VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE")

# Process: Copy Features (2)
arcpy.CopyFeatures_management(Sewers_All_DefQuery, Sewers_All_Query, "", "0", "0", "0")


3eccdd163a23eb6636d2da9957ea1c10ee5eba3b
<mask token>

<mask token>
arcpy.Merge_management(
    'D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS'
    , Outfalls_All,
    'ENABLED "Enabled" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1;SEWER_TYPE "SEWER_TYPE" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1;UNITID "UNITID" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1;DATEBUILT_YEAR "DATEBUILT_YEAR" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1;OWNERSHIP "OWNERSHIP" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1;SPDES_NUM "SPDES_NUM" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1;OUTFALL_SIZE "SIZE1" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1;OUTFALL_SIZE2 "OUTFALL_SIZE2" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1;ITEM_ID "ITEM_ID" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1;ROTATION "ROTATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1;GLOBALID "GlobalID" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1;SOURCE "SourceImage" true true false 256 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1;LATITUDE "LATITUDE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1;LONGITUDE "LONGITUDE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1;UNITTYPE "UNITTYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1;CB "CommunityBoard" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1;POINT_X "POINT_X" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1;POINT_Y "POINT_Y" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1;COMMENTS "COMMENTS" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1;BORO "BORO" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1;UNITS "UNITS" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1;HEADWALL "HEADWALL" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1;PipeDia2 "PIPE_DIAMETER2" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1;REGULATOR_ID "REGULATOR_ID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1;RESPONSIBILITY "RESPONSIBILITY" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1;OUTFALL_TYPE "OUTFALL_TYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1;OF_SIZE "OF_SIZE" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1;RECEIVING_WATERBODY "RECEIVING_WATER_BODY" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1;MS4_ASSET "MS4_ASSET" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1;DATEBUILT "DATEBUILT" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1;CREATEDATE "CREATEDATE" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1;MS4_ASSET_REV "MS4_ASSET_REV" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1;TREATMENT_PLANT "TREATMENT_PLANT" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TREATMENT_PLANT,-1,-1;TEMPOID "TEMPOID" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TEMPOID,-1,-1;PipeDia "PIPE_DIAMETER" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia,-1,-1;No_field "NUMBER_FIELD" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,No_field,-1,-1;TIDEFLAP_GATE "TIDEFLAP_GATE" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TIDEFLAP_GATE,-1,-1'
    )
arcpy.MakeFeatureLayer_management(Outfalls_All, Outfalls_All_DefQuery,
    "SEWER_TYPE IN ('STM', NULL, 'UNK') AND NOT OWNERSHIP = 'NYSDOT' AND MS4_ASSET IN ( NULL, 'N') AND TREATMENT_PLANT IN (NULL, 'PR')"
    , '',
    'OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;UNITID UNITID VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;SPDES_NUM SPDES_NUM VISIBLE NONE;OUTFALL_SIZE OUTFALL_SIZE VISIBLE NONE;ITEM_ID ITEM_ID VISIBLE NONE;ROTATION ROTATION VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;PipeDia PipeDia VISIBLE NONE;SOURCE SOURCE VISIBLE NONE;LATITUDE LATITUDE VISIBLE NONE;LONGITUDE LONGITUDE VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;POINT_X POINT_X VISIBLE NONE;POINT_Y POINT_Y VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;BORO BORO VISIBLE NONE;UNITS UNITS VISIBLE NONE;No_field No_field VISIBLE NONE;TIDEFLAP_GATE TIDEFLAP_GATE VISIBLE NONE;HEADWALL HEADWALL VISIBLE NONE;PipeDia2 PipeDia2 VISIBLE NONE;REGULATOR_ID REGULATOR_ID VISIBLE NONE;RESPONSIBILITY RESPONSIBILITY VISIBLE NONE;OUTFALL_TYPE OUTFALL_TYPE VISIBLE NONE;OF_SIZE OF_SIZE VISIBLE NONE;RECEIVING_WATERBODY RECEIVING_WATERBODY VISIBLE NONE;MS4_ASSET MS4_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;MS4_ASSET_REV MS4_ASSET_REV VISIBLE NONE;OUTFALL_SIZE2 OUTFALL_SIZE2 VISIBLE NONE'
    )
arcpy.CopyFeatures_management(Outfalls_All_DefQuery, Outfalls_All_Query, '',
    '0', '0', '0')
arcpy.Merge_management(
    'D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER'
    , Sewer_All,
    'ENABLED "Enabled" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1;SUBTYPE "SUBTYPE" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1;TREATMENT_PLANT "TREATMENT_PLANT" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1;SEWER_TYPE "SEWER_TYPE" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1;MATERIAL "MATERIAL" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1;UNITID "UNITID" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID,-1,-1;MAINCOMP1 "MAINCOMP1" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP1,-1,-1;MAINCOMP2 "MAINCOMP2" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP2,-1,-1;DATEBUILT_YEAR "DATEBUILT_YEAR" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1;OWNERSHIP "OWNERSHIP" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1;RECONSTRUCTION_TYPE "RECONSTRUCTION_TYPE" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1;GRID_NO "GRID_NO" true true false 6 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1;STATED_LENGTH "STATED_LENGTH" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1;SUPPORT_TYPE "SUPPORT_TYPE" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1;FROM_I_ELEVATION "FROM_I_ELEVATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1;TO_I_ELEVATION "TO_I_ELEVATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1;SLOPE "SLOPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1;UNITID2 "UNITID2" true true false 16 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID2,-1,-1;FROM_I_ELEVATION_BORO_DATUM "FROM_I_ELEVATION_BORO_DATUM" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION_BORO_DATUM,-1,-1;TO_I_ELEVATION_BORO_DATUM "TO_I_ELEVATION_BORO_DATUM" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION_BORO_DATUM,-1,-1;GLOBALID "GlobalID" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1;WIDTH "WIDTH" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1;HEIGHT "HEIGHT" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1;TEMPOID "TEMPOID" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TEMPOID,-1,-1;ASSETID "ASSETID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1;BORO "BORO" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1;UNITTYPE "UNITTYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1;CB "CommunityBoard" true true false 4 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1;COMMENTS "COMMENTS" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1;COMPKEY "COMPKEY" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMPKEY,-1,-1;CONTRACTNO "CONTRACTNO" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1;PS_ID "PS_ID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1;ASSUMED_ASSET "ASSUMED ASSET" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1;DATEBUILT "DATEBUILT" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1;CREATEDATE "CREATEDATE" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1;SHAPE_Length "SHAPE_Length" false true true 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1;PIPESHAPE "PIPESHAPE" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1;FROM_I_ELEV_DATUMTYPE "FROM_I_ELEV_DATUMTYPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1;TO_I_ELEV_DATUMTYPE "TO_I_ELEV_DATUMTYPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1'
    )
arcpy.MakeFeatureLayer_management(Sewer_All, Sewers_All_DefQuery,
    "SUBTYPE = 1 AND TREATMENT_PLANT IN ( NULL, 'HP', 'NA', 'PR', 'TI') AND SEWER_TYPE IN ( 'STM', NULL)"
    , '',
    'OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;SUBTYPE SUBTYPE VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;MATERIAL MATERIAL VISIBLE NONE;UNITID UNITID VISIBLE NONE;MAINCOMP1 MAINCOMP1 VISIBLE NONE;MAINCOMP2 MAINCOMP2 VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;RECONSTRUCTION_TYPE RECONSTRUCTION_TYPE VISIBLE NONE;GRID_NO GRID_NO VISIBLE NONE;STATED_LENGTH STATED_LENGTH VISIBLE NONE;SUPPORT_TYPE SUPPORT_TYPE VISIBLE NONE;FROM_I_ELEVATION FROM_I_ELEVATION VISIBLE NONE;TO_I_ELEVATION TO_I_ELEVATION VISIBLE NONE;SLOPE SLOPE VISIBLE NONE;UNITID2 UNITID2 VISIBLE NONE;FROM_I_ELEVATION_BORO_DATUM FROM_I_ELEVATION_BORO_DATUM VISIBLE NONE;TO_I_ELEVATION_BORO_DATUM TO_I_ELEVATION_BORO_DATUM VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;WIDTH WIDTH VISIBLE NONE;HEIGHT HEIGHT VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;ASSETID ASSETID VISIBLE NONE;BORO BORO VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;COMPKEY COMPKEY VISIBLE NONE;CONTRACTNO CONTRACTNO VISIBLE NONE;PS_ID PS_ID VISIBLE NONE;ASSUMED_ASSET ASSUMED_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;PIPESHAPE PIPESHAPE VISIBLE NONE;FROM_I_ELEV_DATUMTYPE FROM_I_ELEV_DATUMTYPE VISIBLE NONE;TO_I_ELEV_DATUMTYPE TO_I_ELEV_DATUMTYPE VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE'
    )
arcpy.CopyFeatures_management(Sewers_All_DefQuery, Sewers_All_Query, '',
    '0', '0', '0')

<mask token>
OUTFALLS = 'D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS'
OUTFALLS__4_ = (
    'D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS')
OUTFALLS__2_ = (
    'D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS')
Outfalls_All = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All'
Outfalls_All_DefQuery = 'Outfalls_All_DefQuery'
Outfalls_All_Query = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All_Query'
SEWER = 'D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER'
SEWER__2_ = 'D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER'
SEWER__3_ = 'D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER'
Sewer_All = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewer_All'
Sewers_All_DefQuery = 'Sewers_All_DefQuery'
Sewers_All_Query = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewers_All_Query'
arcpy.Merge_management(
    'D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS'
    , Outfalls_All,
    'ENABLED "Enabled" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1;SEWER_TYPE "SEWER_TYPE" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1;UNITID "UNITID" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1;DATEBUILT_YEAR "DATEBUILT_YEAR" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1;OWNERSHIP "OWNERSHIP" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1;SPDES_NUM "SPDES_NUM" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1;OUTFALL_SIZE "SIZE1" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1;OUTFALL_SIZE2 "OUTFALL_SIZE2" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1;ITEM_ID "ITEM_ID" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1;ROTATION "ROTATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1;GLOBALID "GlobalID" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1;SOURCE "SourceImage" true true false 256 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1;LATITUDE "LATITUDE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1;LONGITUDE "LONGITUDE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1;UNITTYPE "UNITTYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1;CB "CommunityBoard" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1;POINT_X "POINT_X" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1;POINT_Y "POINT_Y" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1;COMMENTS "COMMENTS" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1;BORO "BORO" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1;UNITS "UNITS" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1;HEADWALL "HEADWALL" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1;PipeDia2 "PIPE_DIAMETER2" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1;REGULATOR_ID "REGULATOR_ID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1;RESPONSIBILITY "RESPONSIBILITY" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1;OUTFALL_TYPE "OUTFALL_TYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1;OF_SIZE "OF_SIZE" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1;RECEIVING_WATERBODY "RECEIVING_WATER_BODY" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1;MS4_ASSET "MS4_ASSET" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1;DATEBUILT "DATEBUILT" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1;CREATEDATE "CREATEDATE" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1;MS4_ASSET_REV "MS4_ASSET_REV" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1;TREATMENT_PLANT "TREATMENT_PLANT" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TREATMENT_PLANT,-1,-1;TEMPOID "TEMPOID" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TEMPOID,-1,-1;PipeDia "PIPE_DIAMETER" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia,-1,-1;No_field "NUMBER_FIELD" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,No_field,-1,-1;TIDEFLAP_GATE "TIDEFLAP_GATE" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TIDEFLAP_GATE,-1,-1'
    )
arcpy.MakeFeatureLayer_management(Outfalls_All, Outfalls_All_DefQuery,
    "SEWER_TYPE IN ('STM', NULL, 'UNK') AND NOT OWNERSHIP = 'NYSDOT' AND MS4_ASSET IN ( NULL, 'N') AND TREATMENT_PLANT IN (NULL, 'PR')"
    , '',
    'OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;UNITID UNITID VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;SPDES_NUM SPDES_NUM VISIBLE NONE;OUTFALL_SIZE OUTFALL_SIZE VISIBLE NONE;ITEM_ID ITEM_ID VISIBLE NONE;ROTATION ROTATION VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;PipeDia PipeDia VISIBLE NONE;SOURCE SOURCE VISIBLE NONE;LATITUDE LATITUDE VISIBLE NONE;LONGITUDE LONGITUDE VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;POINT_X POINT_X VISIBLE NONE;POINT_Y POINT_Y VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;BORO BORO VISIBLE NONE;UNITS UNITS VISIBLE NONE;No_field No_field VISIBLE NONE;TIDEFLAP_GATE TIDEFLAP_GATE VISIBLE NONE;HEADWALL HEADWALL VISIBLE NONE;PipeDia2 PipeDia2 VISIBLE NONE;REGULATOR_ID REGULATOR_ID VISIBLE NONE;RESPONSIBILITY RESPONSIBILITY VISIBLE NONE;OUTFALL_TYPE OUTFALL_TYPE VISIBLE NONE;OF_SIZE OF_SIZE VISIBLE NONE;RECEIVING_WATERBODY RECEIVING_WATERBODY VISIBLE NONE;MS4_ASSET MS4_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;MS4_ASSET_REV MS4_ASSET_REV VISIBLE NONE;OUTFALL_SIZE2 OUTFALL_SIZE2 VISIBLE NONE'
    )
arcpy.CopyFeatures_management(Outfalls_All_DefQuery, Outfalls_All_Query, '',
    '0', '0', '0')
arcpy.Merge_management(
    'D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER'
    , Sewer_All,
    'ENABLED "Enabled" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1;SUBTYPE "SUBTYPE" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1;TREATMENT_PLANT "TREATMENT_PLANT" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1;SEWER_TYPE "SEWER_TYPE" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1;MATERIAL "MATERIAL" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1;UNITID "UNITID" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID,-1,-1;MAINCOMP1 "MAINCOMP1" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP1,-1,-1;MAINCOMP2 "MAINCOMP2" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP2,-1,-1;DATEBUILT_YEAR "DATEBUILT_YEAR" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1;OWNERSHIP "OWNERSHIP" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1;RECONSTRUCTION_TYPE "RECONSTRUCTION_TYPE" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1;GRID_NO "GRID_NO" true true false 6 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1;STATED_LENGTH "STATED_LENGTH" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1;SUPPORT_TYPE "SUPPORT_TYPE" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1;FROM_I_ELEVATION "FROM_I_ELEVATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1;TO_I_ELEVATION "TO_I_ELEVATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1;SLOPE "SLOPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1;UNITID2 "UNITID2" true true false 16 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID2,-1,-1;FROM_I_ELEVATION_BORO_DATUM "FROM_I_ELEVATION_BORO_DATUM" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION_BORO_DATUM,-1,-1;TO_I_ELEVATION_BORO_DATUM "TO_I_ELEVATION_BORO_DATUM" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION_BORO_DATUM,-1,-1;GLOBALID "GlobalID" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1;WIDTH "WIDTH" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1;HEIGHT "HEIGHT" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1;TEMPOID "TEMPOID" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TEMPOID,-1,-1;ASSETID "ASSETID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1;BORO "BORO" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1;UNITTYPE "UNITTYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1;CB "CommunityBoard" true true false 4 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1;COMMENTS "COMMENTS" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1;COMPKEY "COMPKEY" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMPKEY,-1,-1;CONTRACTNO "CONTRACTNO" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1;PS_ID "PS_ID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1;ASSUMED_ASSET "ASSUMED ASSET" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1;DATEBUILT "DATEBUILT" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1;CREATEDATE "CREATEDATE" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1;SHAPE_Length "SHAPE_Length" false true true 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1;PIPESHAPE "PIPESHAPE" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1;FROM_I_ELEV_DATUMTYPE "FROM_I_ELEV_DATUMTYPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1;TO_I_ELEV_DATUMTYPE "TO_I_ELEV_DATUMTYPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1'
    )
arcpy.MakeFeatureLayer_management(Sewer_All, Sewers_All_DefQuery,
    "SUBTYPE = 1 AND TREATMENT_PLANT IN ( NULL, 'HP', 'NA', 'PR', 'TI') AND SEWER_TYPE IN ( 'STM', NULL)"
    , '',
    'OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;SUBTYPE SUBTYPE VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;MATERIAL MATERIAL VISIBLE NONE;UNITID UNITID VISIBLE NONE;MAINCOMP1 MAINCOMP1 VISIBLE NONE;MAINCOMP2 MAINCOMP2 VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;RECONSTRUCTION_TYPE RECONSTRUCTION_TYPE VISIBLE NONE;GRID_NO GRID_NO VISIBLE NONE;STATED_LENGTH STATED_LENGTH VISIBLE NONE;SUPPORT_TYPE SUPPORT_TYPE VISIBLE NONE;FROM_I_ELEVATION FROM_I_ELEVATION VISIBLE NONE;TO_I_ELEVATION TO_I_ELEVATION VISIBLE NONE;SLOPE SLOPE VISIBLE NONE;UNITID2 UNITID2 VISIBLE NONE;FROM_I_ELEVATION_BORO_DATUM FROM_I_ELEVATION_BORO_DATUM VISIBLE NONE;TO_I_ELEVATION_BORO_DATUM TO_I_ELEVATION_BORO_DATUM VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;WIDTH WIDTH VISIBLE NONE;HEIGHT HEIGHT VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;ASSETID ASSETID VISIBLE NONE;BORO BORO VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;COMPKEY COMPKEY VISIBLE NONE;CONTRACTNO CONTRACTNO VISIBLE NONE;PS_ID PS_ID VISIBLE NONE;ASSUMED_ASSET ASSUMED_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;PIPESHAPE PIPESHAPE VISIBLE NONE;FROM_I_ELEV_DATUMTYPE FROM_I_ELEV_DATUMTYPE VISIBLE NONE;TO_I_ELEV_DATUMTYPE TO_I_ELEV_DATUMTYPE VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE'
    )
arcpy.CopyFeatures_management(Sewers_All_DefQuery, Sewers_All_Query, '',
    '0', '0', '0')

import arcpy
OUTFALLS = 'D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS'
OUTFALLS__4_ = (
    'D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS')
OUTFALLS__2_ = (
    'D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS')
Outfalls_All = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All'
Outfalls_All_DefQuery = 'Outfalls_All_DefQuery'
Outfalls_All_Query = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All_Query'
SEWER = 'D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER'
SEWER__2_ = 'D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER'
SEWER__3_ = 'D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER'
Sewer_All = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewer_All'
Sewers_All_DefQuery = 'Sewers_All_DefQuery'
Sewers_All_Query = 'D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewers_All_Query'
arcpy.Merge_management(
    'D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS'
    , Outfalls_All,
    'ENABLED "Enabled" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1;SEWER_TYPE "SEWER_TYPE" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1;UNITID "UNITID" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1;DATEBUILT_YEAR "DATEBUILT_YEAR" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1;OWNERSHIP "OWNERSHIP" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1;SPDES_NUM "SPDES_NUM" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1;OUTFALL_SIZE "SIZE1" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1;OUTFALL_SIZE2 "OUTFALL_SIZE2" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1;ITEM_ID "ITEM_ID" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1;ROTATION "ROTATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1;GLOBALID "GlobalID" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1;SOURCE "SourceImage" true true false 256 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1;LATITUDE "LATITUDE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1;LONGITUDE "LONGITUDE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1;UNITTYPE "UNITTYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1;CB "CommunityBoard" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1;POINT_X "POINT_X" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1;POINT_Y "POINT_Y" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1;COMMENTS "COMMENTS" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1;BORO "BORO" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1;UNITS "UNITS" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1;HEADWALL "HEADWALL" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1;PipeDia2 "PIPE_DIAMETER2" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1;REGULATOR_ID "REGULATOR_ID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1;RESPONSIBILITY "RESPONSIBILITY" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1;OUTFALL_TYPE "OUTFALL_TYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1;OF_SIZE "OF_SIZE" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1;RECEIVING_WATERBODY "RECEIVING_WATER_BODY" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1;MS4_ASSET "MS4_ASSET" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1;DATEBUILT "DATEBUILT" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1;CREATEDATE "CREATEDATE" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1;MS4_ASSET_REV "MS4_ASSET_REV" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1;TREATMENT_PLANT "TREATMENT_PLANT" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TREATMENT_PLANT,-1,-1;TEMPOID "TEMPOID" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TEMPOID,-1,-1;PipeDia "PIPE_DIAMETER" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia,-1,-1;No_field "NUMBER_FIELD" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,No_field,-1,-1;TIDEFLAP_GATE "TIDEFLAP_GATE" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TIDEFLAP_GATE,-1,-1'
    )
arcpy.MakeFeatureLayer_management(Outfalls_All, Outfalls_All_DefQuery,
    "SEWER_TYPE IN ('STM', NULL, 'UNK') AND NOT OWNERSHIP = 'NYSDOT' AND MS4_ASSET IN ( NULL, 'N') AND TREATMENT_PLANT IN (NULL, 'PR')"
    , '',
    'OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;UNITID UNITID VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;SPDES_NUM SPDES_NUM VISIBLE NONE;OUTFALL_SIZE OUTFALL_SIZE VISIBLE NONE;ITEM_ID ITEM_ID VISIBLE NONE;ROTATION ROTATION VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;PipeDia PipeDia VISIBLE NONE;SOURCE SOURCE VISIBLE NONE;LATITUDE LATITUDE VISIBLE NONE;LONGITUDE LONGITUDE VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;POINT_X POINT_X VISIBLE NONE;POINT_Y POINT_Y VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;BORO BORO VISIBLE NONE;UNITS UNITS VISIBLE NONE;No_field No_field VISIBLE NONE;TIDEFLAP_GATE TIDEFLAP_GATE VISIBLE NONE;HEADWALL HEADWALL VISIBLE NONE;PipeDia2 PipeDia2 VISIBLE NONE;REGULATOR_ID REGULATOR_ID VISIBLE NONE;RESPONSIBILITY RESPONSIBILITY VISIBLE NONE;OUTFALL_TYPE OUTFALL_TYPE VISIBLE NONE;OF_SIZE OF_SIZE VISIBLE NONE;RECEIVING_WATERBODY RECEIVING_WATERBODY VISIBLE NONE;MS4_ASSET MS4_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;MS4_ASSET_REV MS4_ASSET_REV VISIBLE NONE;OUTFALL_SIZE2 OUTFALL_SIZE2 VISIBLE NONE'
    )
arcpy.CopyFeatures_management(Outfalls_All_DefQuery, Outfalls_All_Query, '',
    '0', '0', '0')
arcpy.Merge_management(
    'D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER'
    , Sewer_All,
    'ENABLED "Enabled" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1;SUBTYPE "SUBTYPE" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1;TREATMENT_PLANT "TREATMENT_PLANT" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1;SEWER_TYPE "SEWER_TYPE" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1;MATERIAL "MATERIAL" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1;UNITID "UNITID" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID,-1,-1;MAINCOMP1 "MAINCOMP1" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP1,-1,-1;MAINCOMP2 "MAINCOMP2" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP2,-1,-1;DATEBUILT_YEAR "DATEBUILT_YEAR" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1;OWNERSHIP "OWNERSHIP" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1;RECONSTRUCTION_TYPE "RECONSTRUCTION_TYPE" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1;GRID_NO "GRID_NO" true true false 6 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1;STATED_LENGTH "STATED_LENGTH" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1;SUPPORT_TYPE "SUPPORT_TYPE" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1;FROM_I_ELEVATION "FROM_I_ELEVATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1;TO_I_ELEVATION "TO_I_ELEVATION" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1;SLOPE "SLOPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1;UNITID2 "UNITID2" true true false 16 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID2,-1,-1;FROM_I_ELEVATION_BORO_DATUM "FROM_I_ELEVATION_BORO_DATUM" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION_BORO_DATUM,-1,-1;TO_I_ELEVATION_BORO_DATUM "TO_I_ELEVATION_BORO_DATUM" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION_BORO_DATUM,-1,-1;GLOBALID "GlobalID" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1;WIDTH "WIDTH" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1;HEIGHT "HEIGHT" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1;TEMPOID "TEMPOID" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TEMPOID,-1,-1;ASSETID "ASSETID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1;BORO "BORO" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1;UNITTYPE "UNITTYPE" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1;CB "CommunityBoard" true true false 4 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1;COMMENTS "COMMENTS" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1;COMPKEY "COMPKEY" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMPKEY,-1,-1;CONTRACTNO "CONTRACTNO" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1;PS_ID "PS_ID" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1;ASSUMED_ASSET "ASSUMED ASSET" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1;DATEBUILT "DATEBUILT" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1;CREATEDATE "CREATEDATE" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1;SHAPE_Length "SHAPE_Length" false true true 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1;PIPESHAPE "PIPESHAPE" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1;FROM_I_ELEV_DATUMTYPE "FROM_I_ELEV_DATUMTYPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1;TO_I_ELEV_DATUMTYPE "TO_I_ELEV_DATUMTYPE" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1'
    )
arcpy.MakeFeatureLayer_management(Sewer_All, Sewers_All_DefQuery,
    "SUBTYPE = 1 AND TREATMENT_PLANT IN ( NULL, 'HP', 'NA', 'PR', 'TI') AND SEWER_TYPE IN ( 'STM', NULL)"
    , '',
    'OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;SUBTYPE SUBTYPE VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;MATERIAL MATERIAL VISIBLE NONE;UNITID UNITID VISIBLE NONE;MAINCOMP1 MAINCOMP1 VISIBLE NONE;MAINCOMP2 MAINCOMP2 VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;RECONSTRUCTION_TYPE RECONSTRUCTION_TYPE VISIBLE NONE;GRID_NO GRID_NO VISIBLE NONE;STATED_LENGTH STATED_LENGTH VISIBLE NONE;SUPPORT_TYPE SUPPORT_TYPE VISIBLE NONE;FROM_I_ELEVATION FROM_I_ELEVATION VISIBLE NONE;TO_I_ELEVATION TO_I_ELEVATION VISIBLE NONE;SLOPE SLOPE VISIBLE NONE;UNITID2 UNITID2 VISIBLE NONE;FROM_I_ELEVATION_BORO_DATUM FROM_I_ELEVATION_BORO_DATUM VISIBLE NONE;TO_I_ELEVATION_BORO_DATUM TO_I_ELEVATION_BORO_DATUM VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;WIDTH WIDTH VISIBLE NONE;HEIGHT HEIGHT VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;ASSETID ASSETID VISIBLE NONE;BORO BORO VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;COMPKEY COMPKEY VISIBLE NONE;CONTRACTNO CONTRACTNO VISIBLE NONE;PS_ID PS_ID VISIBLE NONE;ASSUMED_ASSET ASSUMED_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;PIPESHAPE PIPESHAPE VISIBLE NONE;FROM_I_ELEV_DATUMTYPE FROM_I_ELEV_DATUMTYPE VISIBLE NONE;TO_I_ELEV_DATUMTYPE TO_I_ELEV_DATUMTYPE VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE'
    )
arcpy.CopyFeatures_management(Sewers_All_DefQuery, Sewers_All_Query, '',
    '0', '0', '0')

# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# query.py
# Created on: 2019-07-24 14:16:06.00000
#   (generated by ArcGIS/ModelBuilder)
# Description: 
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy


# Local variables:
OUTFALLS = "D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS"
OUTFALLS__4_ = "D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS"
OUTFALLS__2_ = "D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS"
Outfalls_All = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All"
Outfalls_All_DefQuery = "Outfalls_All_DefQuery"
Outfalls_All_Query = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Outfalls_All_Query"
SEWER = "D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER"
SEWER__2_ = "D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER"
SEWER__3_ = "D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER"
Sewer_All = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewer_All"
Sewers_All_DefQuery = "Sewers_All_DefQuery"
Sewers_All_Query = "D:\\GIS\\Dewberry\\gdb\\MS4Data.gdb\\Sewers_All_Query"

# Process: Merge (2)
arcpy.Merge_management("D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS", Outfalls_All, "ENABLED \"Enabled\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ENABLED,-1,-1;SEWER_TYPE \"SEWER_TYPE\" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SEWER_TYPE,-1,-1;UNITID \"UNITID\" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITID,-1,-1;DATEBUILT_YEAR \"DATEBUILT_YEAR\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT_YEAR,-1,-1;OWNERSHIP \"OWNERSHIP\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OWNERSHIP,-1,-1;SPDES_NUM \"SPDES_NUM\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SPDES_NUM,-1,-1;OUTFALL_SIZE \"SIZE1\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE,-1,-1;OUTFALL_SIZE2 \"OUTFALL_SIZE2\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_SIZE2,-1,-1;ITEM_ID \"ITEM_ID\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ITEM_ID,-1,-1;ROTATION \"ROTATION\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,ROTATION,-1,-1;GLOBALID \"GlobalID\" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,GLOBALID,-1,-1;SOURCE \"SourceImage\" true true false 256 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,SOURCE,-1,-1;LATITUDE \"LATITUDE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LATITUDE,-1,-1;LONGITUDE \"LONGITUDE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,LONGITUDE,-1,-1;UNITTYPE \"UNITTYPE\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITTYPE,-1,-1;CB \"CommunityBoard\" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CB,-1,-1;POINT_X \"POINT_X\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_X,-1,-1;POINT_Y \"POINT_Y\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,POINT_Y,-1,-1;COMMENTS \"COMMENTS\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,COMMENTS,-1,-1;BORO \"BORO\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,BORO,-1,-1;UNITS \"UNITS\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,UNITS,-1,-1;HEADWALL \"HEADWALL\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,HEADWALL,-1,-1;PipeDia2 \"PIPE_DIAMETER2\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia2,-1,-1;REGULATOR_ID \"REGULATOR_ID\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,REGULATOR_ID,-1,-1;RESPONSIBILITY \"RESPONSIBILITY\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RESPONSIBILITY,-1,-1;OUTFALL_TYPE \"OUTFALL_TYPE\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OUTFALL_TYPE,-1,-1;OF_SIZE \"OF_SIZE\" true true false 30 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,OF_SIZE,-1,-1;RECEIVING_WATERBODY \"RECEIVING_WATER_BODY\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,RECEIVING_WATERBODY,-1,-1;MS4_ASSET \"MS4_ASSET\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET,-1,-1;DATEBUILT \"DATEBUILT\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,DATEBUILT,-1,-1;CREATEDATE \"CREATEDATE\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,CREATEDATE,-1,-1;MS4_ASSET_REV \"MS4_ASSET_REV\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\OUTFALLS,MS4_ASSET_REV,-1,-1;TREATMENT_PLANT \"TREATMENT_PLANT\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TREATMENT_PLANT,-1,-1;TEMPOID \"TEMPOID\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TEMPOID,-1,-1;PipeDia \"PIPE_DIAMETER\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,PipeDia,-1,-1;No_field \"NUMBER_FIELD\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,No_field,-1,-1;TIDEFLAP_GATE \"TIDEFLAP_GATE\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\OUTFALLS,TIDEFLAP_GATE,-1,-1")

# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(Outfalls_All, Outfalls_All_DefQuery, "SEWER_TYPE IN ('STM', NULL, 'UNK') AND NOT OWNERSHIP = 'NYSDOT' AND MS4_ASSET IN ( NULL, 'N') AND TREATMENT_PLANT IN (NULL, 'PR')", "", "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;UNITID UNITID VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;SPDES_NUM SPDES_NUM VISIBLE NONE;OUTFALL_SIZE OUTFALL_SIZE VISIBLE NONE;ITEM_ID ITEM_ID VISIBLE NONE;ROTATION ROTATION VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;PipeDia PipeDia VISIBLE NONE;SOURCE SOURCE VISIBLE NONE;LATITUDE LATITUDE VISIBLE NONE;LONGITUDE LONGITUDE VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;POINT_X POINT_X VISIBLE NONE;POINT_Y POINT_Y VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;BORO BORO VISIBLE NONE;UNITS UNITS VISIBLE NONE;No_field No_field VISIBLE NONE;TIDEFLAP_GATE TIDEFLAP_GATE VISIBLE NONE;HEADWALL HEADWALL VISIBLE NONE;PipeDia2 PipeDia2 VISIBLE NONE;REGULATOR_ID REGULATOR_ID VISIBLE NONE;RESPONSIBILITY RESPONSIBILITY VISIBLE NONE;OUTFALL_TYPE OUTFALL_TYPE VISIBLE NONE;OF_SIZE OF_SIZE VISIBLE NONE;RECEIVING_WATERBODY RECEIVING_WATERBODY VISIBLE NONE;MS4_ASSET MS4_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;MS4_ASSET_REV MS4_ASSET_REV VISIBLE NONE;OUTFALL_SIZE2 OUTFALL_SIZE2 VISIBLE NONE")

# Process: Copy Features
arcpy.CopyFeatures_management(Outfalls_All_DefQuery, Outfalls_All_Query, "", "0", "0", "0")

# Process: Merge
arcpy.Merge_management("D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER;D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER", Sewer_All, "ENABLED \"Enabled\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ENABLED,-1,-1;SUBTYPE \"SUBTYPE\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUBTYPE,-1,-1;TREATMENT_PLANT \"TREATMENT_PLANT\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TREATMENT_PLANT,-1,-1;SEWER_TYPE \"SEWER_TYPE\" true true false 5 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SEWER_TYPE,-1,-1;MATERIAL \"MATERIAL\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,MATERIAL,-1,-1;UNITID \"UNITID\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID,-1,-1;MAINCOMP1 \"MAINCOMP1\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP1,-1,-1;MAINCOMP2 \"MAINCOMP2\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,MAINCOMP2,-1,-1;DATEBUILT_YEAR \"DATEBUILT_YEAR\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT_YEAR,-1,-1;OWNERSHIP \"OWNERSHIP\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,OWNERSHIP,-1,-1;RECONSTRUCTION_TYPE \"RECONSTRUCTION_TYPE\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,RECONSTRUCTION_TYPE,-1,-1;GRID_NO \"GRID_NO\" true true false 6 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GRID_NO,-1,-1;STATED_LENGTH \"STATED_LENGTH\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,STATED_LENGTH,-1,-1;SUPPORT_TYPE \"SUPPORT_TYPE\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SUPPORT_TYPE,-1,-1;FROM_I_ELEVATION \"FROM_I_ELEVATION\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION,-1,-1;TO_I_ELEVATION \"TO_I_ELEVATION\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION,-1,-1;SLOPE \"SLOPE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SLOPE,-1,-1;UNITID2 \"UNITID2\" true true false 16 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITID2,-1,-1;FROM_I_ELEVATION_BORO_DATUM \"FROM_I_ELEVATION_BORO_DATUM\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEVATION_BORO_DATUM,-1,-1;TO_I_ELEVATION_BORO_DATUM \"TO_I_ELEVATION_BORO_DATUM\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEVATION_BORO_DATUM,-1,-1;GLOBALID \"GlobalID\" false false false 38 GlobalID 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,GLOBALID,-1,-1;WIDTH \"WIDTH\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,WIDTH,-1,-1;HEIGHT \"HEIGHT\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,HEIGHT,-1,-1;TEMPOID \"TEMPOID\" true true false 4 Long 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,TEMPOID,-1,-1;ASSETID \"ASSETID\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSETID,-1,-1;BORO \"BORO\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,BORO,-1,-1;UNITTYPE \"UNITTYPE\" true true false 10 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,UNITTYPE,-1,-1;CB \"CommunityBoard\" true true false 4 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CB,-1,-1;COMMENTS \"COMMENTS\" true true false 255 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,COMMENTS,-1,-1;COMPKEY \"COMPKEY\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,COMPKEY,-1,-1;CONTRACTNO \"CONTRACTNO\" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CONTRACTNO,-1,-1;PS_ID \"PS_ID\" true true false 50 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PS_ID,-1,-1;ASSUMED_ASSET \"ASSUMED ASSET\" true true false 2 Short 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,ASSUMED_ASSET,-1,-1;DATEBUILT \"DATEBUILT\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,DATEBUILT,-1,-1;CREATEDATE \"CREATEDATE\" true true false 8 Date 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,CREATEDATE,-1,-1;SHAPE_Length \"SHAPE_Length\" false true true 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\SI\\31936_Sewer.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,SHAPE_Length,-1,-1;PIPESHAPE \"PIPESHAPE\" true true false 100 Text 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,PIPESHAPE,-1,-1;FROM_I_ELEV_DATUMTYPE \"FROM_I_ELEV_DATUMTYPE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,FROM_I_ELEV_DATUMTYPE,-1,-1;TO_I_ELEV_DATUMTYPE \"TO_I_ELEV_DATUMTYPE\" true true false 8 Double 0 0 ,First,#,D:\\GIS\\Dewberry\\gdb\\HP\\rcu-32304.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1,D:\\GIS\\Dewberry\\gdb\\TI\\rcu-32332.gdb\\NYCDEP_Sewer\\SEWER,TO_I_ELEV_DATUMTYPE,-1,-1")

# Process: Make Feature Layer (2)
arcpy.MakeFeatureLayer_management(Sewer_All, Sewers_All_DefQuery, "SUBTYPE = 1 AND TREATMENT_PLANT IN ( NULL, 'HP', 'NA', 'PR', 'TI') AND SEWER_TYPE IN ( 'STM', NULL)", "", "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;ENABLED ENABLED VISIBLE NONE;SUBTYPE SUBTYPE VISIBLE NONE;TREATMENT_PLANT TREATMENT_PLANT VISIBLE NONE;SEWER_TYPE SEWER_TYPE VISIBLE NONE;MATERIAL MATERIAL VISIBLE NONE;UNITID UNITID VISIBLE NONE;MAINCOMP1 MAINCOMP1 VISIBLE NONE;MAINCOMP2 MAINCOMP2 VISIBLE NONE;DATEBUILT_YEAR DATEBUILT_YEAR VISIBLE NONE;OWNERSHIP OWNERSHIP VISIBLE NONE;RECONSTRUCTION_TYPE RECONSTRUCTION_TYPE VISIBLE NONE;GRID_NO GRID_NO VISIBLE NONE;STATED_LENGTH STATED_LENGTH VISIBLE NONE;SUPPORT_TYPE SUPPORT_TYPE VISIBLE NONE;FROM_I_ELEVATION FROM_I_ELEVATION VISIBLE NONE;TO_I_ELEVATION TO_I_ELEVATION VISIBLE NONE;SLOPE SLOPE VISIBLE NONE;UNITID2 UNITID2 VISIBLE NONE;FROM_I_ELEVATION_BORO_DATUM FROM_I_ELEVATION_BORO_DATUM VISIBLE NONE;TO_I_ELEVATION_BORO_DATUM TO_I_ELEVATION_BORO_DATUM VISIBLE NONE;GLOBALID GLOBALID VISIBLE NONE;WIDTH WIDTH VISIBLE NONE;HEIGHT HEIGHT VISIBLE NONE;TEMPOID TEMPOID VISIBLE NONE;ASSETID ASSETID VISIBLE NONE;BORO BORO VISIBLE NONE;UNITTYPE UNITTYPE VISIBLE NONE;CB CB VISIBLE NONE;COMMENTS COMMENTS VISIBLE NONE;COMPKEY COMPKEY VISIBLE NONE;CONTRACTNO CONTRACTNO VISIBLE NONE;PS_ID PS_ID VISIBLE NONE;ASSUMED_ASSET ASSUMED_ASSET VISIBLE NONE;DATEBUILT DATEBUILT VISIBLE NONE;CREATEDATE CREATEDATE VISIBLE NONE;PIPESHAPE PIPESHAPE VISIBLE NONE;FROM_I_ELEV_DATUMTYPE FROM_I_ELEV_DATUMTYPE VISIBLE NONE;TO_I_ELEV_DATUMTYPE TO_I_ELEV_DATUMTYPE VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE")

# Process: Copy Features (2)
arcpy.CopyFeatures_management(Sewers_All_DefQuery, Sewers_All_Query, "", "0", "0", "0")

