arcpy SelectByLocation_management 按位置选择

nimport arcpynfrom arcpy import envnnsourceGDB=r”d:\polygon.gdb”nenv.workspace=sourceGDBntarget=”merge”nout_feature_class=”p2″narcpy.MakeFeatureLayer_management(out_feature_class, ‘